@echo off
chcp 65001 >nul
cd /d "%~dp0"
if "%~1"=="" (
    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\PatchManager.ps1" -Action Install
) else (
    powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\PatchManager.ps1" -Action Install -GamePath "%~1"
)
set "RESULT=%ERRORLEVEL%"
echo.
if not "%RESULT%"=="0" echo 설치가 완료되지 않았습니다.
pause
exit /b %RESULT%
