@ECHO OFF
@COLOR 02
@TITLE FLOCK! 1.03 Patch (1C)
@ECHO -----------------------
@ECHO Apply Patch? [ y / n ]
@ECHO -----------------------
@SET /P QUEST=
@IF NOT "%QUEST%"=="y" EXIT
@CLS
@CD /d "%~dp0"
@IF EXIST "GameData.tmp" DEL "GameData.tmp"
@IF EXIST "GameData.fpk" REN "GameData.fpk" "GameData.tmp"
@SET "ERRORLEVEL="
@"_patcher.exe" -d -s "GameData.tmp" "_patcher.dat" "GameData.fpk"
@IF "%ERRORLEVEL%" EQU "0" SET PATCHEDOK=1
@IF EXIST "%CD%\GameData.fpk" (DEL "%CD%\GameData.tmp") ELSE (REN "%CD%\GameData.tmp" "GameData.fpk")
@IF "%PATCHEDOK%" EQU "1" (CLS & ECHO All done! & PING -n 3 127.0.0.1 > nul & DEL "_readme.txt" & DEL "_patcher.dat" & DEL "_patcher.exe" & DEL "%~f0" & EXIT) ELSE (PING -n 4 127.0.0.1 > nul)