From a801e5c325384960dbe0325453da4c45f6b4ef7c Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 20 Oct 2013 11:23:46 +0800 Subject: [PATCH 1/2] Fix Windows logging Fix https://github.com/hrydgard/ppsspp/issues/4239 --- Windows/Log.bat | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Windows/Log.bat b/Windows/Log.bat index 5f43e36576..699e5ad08c 100644 --- a/Windows/Log.bat +++ b/Windows/Log.bat @@ -1,6 +1,4 @@ @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 +IF exist .\ppsspp.log Del .\ppsspp.log +IF exist .\PPSSPPWindows.exe PPSSPPWindows.exe --log=ppsspp.log +IF exist .\PPSSPPWindows64.exe PPSSPPWindows64.exe --log=ppsspp.log \ No newline at end of file From 4a278fcfcf2306cba99d493255456330b0aa04ca Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 20 Oct 2013 11:50:21 +0800 Subject: [PATCH 2/2] Use unknownbrackets method --- Windows/Log.bat | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Windows/Log.bat b/Windows/Log.bat index 699e5ad08c..5ab79f2084 100644 --- a/Windows/Log.bat +++ b/Windows/Log.bat @@ -1,4 +1,17 @@ @echo off -IF exist .\ppsspp.log Del .\ppsspp.log -IF exist .\PPSSPPWindows.exe PPSSPPWindows.exe --log=ppsspp.log -IF exist .\PPSSPPWindows64.exe PPSSPPWindows64.exe --log=ppsspp.log \ 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