2011-07-17 12:16:26 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
rmdir /S /Q src
|
|
|
|
|
|
|
|
IF EXIST src_base (
|
2011-10-09 04:21:29 +00:00
|
|
|
move src_base src
|
|
|
|
rmdir /S /Q src_work
|
2011-07-17 12:16:26 +00:00
|
|
|
) ELSE (
|
2011-10-09 04:21:29 +00:00
|
|
|
cmd /C decompile.bat
|
|
|
|
cd src
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py ..\forge\modLoaderMP.patch ..\forge\modLoaderMP-win.patch
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 < ..\forge\modLoaderMP-win.patch
|
|
|
|
cd ..
|
|
|
|
cmd /C recompile.bat
|
|
|
|
cmd /C updatemd5.bat
|
2011-07-17 12:16:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
mkdir src_base
|
|
|
|
mkdir src_work
|
|
|
|
xcopy /Y /E src\* src_base
|
|
|
|
xcopy /Y /E src\* src_work
|
|
|
|
cd src_work
|
2011-10-09 04:21:29 +00:00
|
|
|
@setlocal enabledelayedexpansion
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
set PATH=..\forge\bin;%PATH%
|
|
|
|
echo Applying patches
|
|
|
|
for /f %%i in ('find ../forge/patches -type f') do (
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py %%i %%i
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 < %%i
|
|
|
|
)
|
|
|
|
|
|
|
|
cd ../forge
|
2011-07-19 17:58:23 +00:00
|
|
|
pause
|
2011-10-09 04:21:29 +00:00
|
|
|
|