-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiTexturedButtons.bat
More file actions
73 lines (63 loc) · 1.95 KB
/
MultiTexturedButtons.bat
File metadata and controls
73 lines (63 loc) · 1.95 KB
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
70
71
72
73
@echo off
set programdir="C:\Programming"
set packagedir="%programdir%\Packages"
set repodir="%programdir%\Repositories"
set forgedir="%repodir%\MinecraftForge"
set fmldir="%repodir%\MinecraftForge\fml"
set mcpdir="%programdir%\mcp"
set euryscore="%repodir%\EurysCore-FML"
set mtbuttons="%repodir%\MultiTexturedButtons"
cd %mcpdir%
if not exist %euryscore% GOTO :ECFAIL
GOTO :EC
:EC
if exist %mcpdir%\src GOTO :COPYSRC
GOTO :ECFAIL
:COPYSRC
if not exist "%mcpdir%\src-work" GOTO :CREATESRC
GOTO :ECFAIL
:CREATESRC
mkdir "%mcpdir%\src-work"
xcopy "%mcpdir%\src\*.*" "%mcpdir%\src-work\" /S
if exist "%mcpdir%\src-work" GOTO :COPYEC
GOTO :ECFAIL
:COPYEC
xcopy "%euryscore%\SV-common\*.*" "%mcpdir%\src\minecraft" /S
xcopy "%mtbuttons%\MTB-source\*.*" "%mcpdir%\src\minecraft" /S
pause
call %mcpdir%\recompile.bat
call %mcpdir%\reobfuscate.bat
echo Recompile and Reobf Completed Successfully
pause
:REPACKAGE
if not exist "%mcpdir%\reobf" GOTO :ECFAIL
if exist "%packagedir%\MultiTexturedButtons" (
del "%packagedir%\MultiTexturedButtons\*.*" /S /Q
rmdir "%packagedir%\MultiTexturedButtons" /S /Q
)
mkdir "%packagedir%\MultiTexturedButtons\eurymachus\mtb"
xcopy "%mcpdir%\reobf\minecraft\eurymachus\mtb\*.*" "%packagedir%\MultiTexturedButtons\eurymachus\mtb\" /S
xcopy "%mtbuttons%\MTB-resources\*.*" "%packagedir%\MultiTexturedButtons\" /S
echo "Multi-Textured Buttons Packaged Successfully
pause
ren "%mcpdir%\src" src-old
echo Recompiled Source folder renamed
pause
ren "%mcpdir%\src-work" src
echo Original Source folder restored
pause
del "%mcpdir%\src-old" /S /Q
del "%mcpdir%\reobf" /S /Q
if exist "%mcpdir%\src-old" rmdir "%mcpdir%\src-old" /S /Q
if exist "%mcpdir%\reobf" rmdir "%mcpdir%\reobf" /S /Q
echo Folder structure reset
GOTO :ECCOMPLETE
:ECFAIL
echo Could not compile Multi-Textured Buttons
pause
GOTO :EOF
:ECCOMPLETE
echo Multi-Textured Buttons completed compile successfully
pause
GOTO :EOF
:EOF