forked from StygianTheBest/StygianCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_corepatch.bat
69 lines (61 loc) · 2.51 KB
/
start_corepatch.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
REM ########################################################################################
REM ____ __ ____
REM /\ _`\ /\ \__ __ /\ _`\
REM \ \,\L\_\ \ ,_\ __ __ __ /\_\ __ ___\ \ \/\_\ ___ _ __ __
REM \/_\__ \\ \ \/ /\ \/\ \ /'_ `\/\ \ /'__`\ /' _ `\ \ \/_/_ / __`\/\`'__\/'__`\
REM /\ \L\ \ \ \_\ \ \_\ \/\ \L\ \ \ \/\ \L\.\_/\ \/\ \ \ \L\ \/\ \L\ \ \ \//\ __/
REM \ `\____\ \__\\/`____ \ \____ \ \_\ \__/.\_\ \_\ \_\ \____/\ \____/\ \_\\ \____\
REM \/_____/\/__/ `/___/ \/___L\ \/_/\/__/\/_/\/_/\/_/\/___/ \/___/ \/_/ \/____/
REM /\___/ /\____/
REM \/__/ \_/__/ http://stygianthebest.github.io
REM
REM ########################################################################################
REM
REM start_corepatch.bat
REM
REM Launches the StygianCore patch utility for upgrading the repack.
REM
REM ########################################################################################
REM 1(Blue), 2(Green), 3(Cyan), 4(Red), 5(Purple), 6(Yellow), 7(LGray), 8(Gray)
COLOR 4F
SET NAME=StygianCore Patch Utility
TITLE %NAME%
CLS
IF EXIST StygianCore_Revision*. (
echo.
echo [-------------------]
echo [- # CORE PATCH # -]
echo [-------------------]
echo.
echo This process will patch StygianCore to the latest revision. If you
echo are seeing this, the required patch files are in the correct folder
echo and are ready to deploy. Your current binaries and world database
echo will be backed up automatically to the Tools\PatchBackup folder
echo before the patch process begins.
echo -------------------------------------------------------------------
echo.
set /P menu=Are you sure want to install the CORE PATCH? [Y/N]:
if /I "%menu%"=="n" (goto menu)
if /I "%menu%"=="y" (goto patch_prepare)
) else (
echo.
echo [- *** Core Patch Missing Files.. Exiting *** -]
echo.
echo.
echo You need to put the StygianCore_Revision_XXXX_XX_XX.zip file
echo in this the StygianCore root folder.
echo.
pause
exit
)
:patch_prepare
echo.
echo [- Preparing Patch Archive -]
echo.
REM Unzip Patch Archive
Tools\7Z x -y StygianCore_Revision_*.* -o.\Tools\Temp\PatchCore\
REM Upgrade StygianCoreTools.bat
xcopy /y /q Tools\Temp\PatchCore\StygianCoreTools.bat
Call StygianCoreTools.bat
exit