@echo off
chcp 65001 >nul
cd /d "%~dp0"
if "%~1"=="" (
    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\PatchManager.ps1" -Action Verify
) else (
    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\PatchManager.ps1" -Action Verify -GamePath "%~1"
)
set "RESULT=%ERRORLEVEL%"
echo.
pause
exit /b %RESULT%
