@ECHO OFF
@COLOR 02
@TITLE Shabgard FIX (Pardis Game)
@ECHO --------------------
@ECHO Apply FIX? [ y / n ]
@ECHO --------------------
@SET /P QUEST=
@IF NOT "%QUEST%"=="y" EXIT
@CLS
@CD /d "%~dp0"
@IF EXIST "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.tmp" DEL "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.tmp"
@IF EXIST "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.udk" REN "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.udk" "mainmenu_shabgard.tmp"
@"%CD%\UDKGame\CookedPC\levels\shabgard room\_patch.exe" -d -s "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.tmp" "%CD%\UDKGame\CookedPC\levels\shabgard room\_patch.dat" "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.udk"
@IF "%ERRORLEVEL%" EQU "0" (SET PATCHEDOK=1) ELSE (SET PATCHEDOK=0)
@IF EXIST "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.udk" (DEL "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.tmp") ELSE (REN "%CD%\UDKGame\CookedPC\levels\shabgard room\mainmenu_shabgard.tmp" "mainmenu_shabgard.udk")
@IF "%PATCHEDOK%" EQU "0" GOTO ERROR_PATCHING
@GOTO ALL_DONE
:ERROR_PATCHING
@COLOR 04 & PAUSE & EXIT
:ALL_DONE
@IF "%PATCHEDOK%" EQU "1" CLS & ECHO All done! & PING -n 3 127.0.0.1 > nul & DEL "%CD%\UDKGame\CookedPC\levels\shabgard room\_patch.dat" & DEL "%CD%\UDKGame\CookedPC\levels\shabgard room\_patch.exe" & DEL "%~f0" & EXIT