2011-10-10 00:09:48 +00:00
|
|
|
echo off
|
|
|
|
pushd .. >nul
|
2011-07-17 12:16:26 +00:00
|
|
|
|
2012-02-03 10:46:49 +00:00
|
|
|
if "%1"=="-skipdecompile" (
|
2012-03-04 01:56:15 +00:00
|
|
|
@echo | cmd /C updatenames.bat -f
|
2012-02-03 10:46:49 +00:00
|
|
|
) ELSE (
|
2012-03-04 01:56:15 +00:00
|
|
|
if not exist "runtime\bin\fernflower.jar" (
|
|
|
|
pushd forge
|
|
|
|
..\runtime\bin\python\python_mcp download_fernflower.py
|
|
|
|
popd
|
|
|
|
)
|
|
|
|
if not exist "runtime\bin\fernflower.jar" (
|
|
|
|
echo Failed to download fernflower, install it manually and re-run setup.
|
|
|
|
exit 1
|
|
|
|
)
|
2012-02-03 10:46:49 +00:00
|
|
|
rmdir /S /Q src
|
|
|
|
@echo | cmd /C decompile.bat
|
|
|
|
)
|
2012-03-04 01:56:15 +00:00
|
|
|
|
|
|
|
|
2011-10-10 00:09:48 +00:00
|
|
|
rmdir /S /Q src_base
|
2011-10-09 04:21:29 +00:00
|
|
|
rmdir /S /Q src_work
|
2011-10-10 00:09:48 +00:00
|
|
|
|
|
|
|
pushd src >nul
|
2011-11-30 19:00:43 +00:00
|
|
|
del minecraft\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft\net\minecraft\src\MLProp.java
|
|
|
|
del minecraft_server\net\minecraft\src\MLProp.java
|
|
|
|
copy ..\forge\MLProp.java minecraft_server\net\minecraft\src\MLProp.java
|
2011-10-10 00:09:48 +00:00
|
|
|
popd >nul
|
|
|
|
|
2012-03-05 20:44:00 +00:00
|
|
|
@echo | cmd /C updatemd5.bat -f
|
2011-10-10 00:09:48 +00:00
|
|
|
|
|
|
|
mkdir src_base
|
|
|
|
mkdir src_work
|
|
|
|
|
|
|
|
xcopy /Y /E /Q src\* src_base
|
|
|
|
xcopy /Y /E /Q src\* src_work
|
|
|
|
|
|
|
|
pushd src_work >nul
|
|
|
|
@setlocal enabledelayedexpansion
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
set PATH=..\forge\bin;%PATH%
|
|
|
|
echo Applying patches
|
|
|
|
for /f %%i in ('find ../forge/patches -type f') do (
|
|
|
|
set file=%%i
|
2012-02-03 11:30:49 +00:00
|
|
|
rem Have to do this to filter out .svn entries
|
2011-10-10 00:09:48 +00:00
|
|
|
if /I "!file:~-6!" EQU ".patch" (
|
|
|
|
..\runtime\bin\python\python_mcp ..\forge\lfcr.py %%i ..\forge\temp.patch
|
|
|
|
..\runtime\bin\applydiff.exe -uf -p2 -i ..\forge\temp.patch
|
2011-10-10 23:47:30 +00:00
|
|
|
del ..\forge\temp.patch >nul 1>nul
|
2011-10-10 00:09:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
popd >nul
|
|
|
|
popd >nul
|
|
|
|
echo finished
|
2012-02-03 10:46:49 +00:00
|
|
|
pause
|