diff --git a/Windows/Log.bat b/Windows/Log.bat index 5f43e36576..5ab79f2084 100644 --- a/Windows/Log.bat +++ b/Windows/Log.bat @@ -1,6 +1,17 @@ @echo off -IF Not exist .\User md .\User -IF Not exist .\User\Logs md .\User\Logs -IF exist .\User\Logs\ppsspp.log Del .\User\Logs\ppsspp.log -IF exist .\PPSSPPWindows.exe PPSSPPWindows.exe -IF exist .\PPSSPPWindows64.exe PPSSPPWindows64.exe \ No newline at end of file +set LOGFILE=ppsspp.log + +del "%LOGFILE%" 2> NUL +if exist PPSSPPWindows64.exe ( + PPSSPPWindows64.exe --log="%LOGFILE%" + goto exit +) +if exist PPSSPPWindows.exe ( + PPSSPPWindows.exe --log="%LOGFILE%" + goto exit +) + +echo Unable to find PPSSPPWindows.exe. +pause + +:exit \ No newline at end of file