diff --git a/gameupdate/patch.bat b/gameupdate/patch.bat index b963018..0664322 100644 --- a/gameupdate/patch.bat +++ b/gameupdate/patch.bat @@ -1,6 +1,25 @@ @echo off setlocal EnableExtensions EnableDelayedExpansion +REM Check if being run from gameupdate folder (incorrect usage) +for %%I in ("%CD%") do set "CURRENT_FOLDER=%%~nxI" +if /I "%CURRENT_FOLDER%"=="gameupdate" ( + echo. + echo ======================================== + echo ERROR: Do not run patch.bat directly! + echo ======================================== + echo. + echo You are running this from the gameupdate folder. + echo This will not work correctly! + echo. + echo Please go back to the game's root folder and + echo run GameUpdate.bat instead. + echo ======================================== + echo. + pause + exit /b 1 +) + REM Determine important paths set "SCRIPT_DIR=%~dp0" set "ROOT_DIR=%CD%"