Correct the support folder location in the crash dialog

This commit is contained in:
abcdefg30
2020-07-02 23:56:28 +02:00
committed by Oliver Brakmann
parent a6d8d6cd8e
commit 376ed15079
4 changed files with 31 additions and 4 deletions

View File

@@ -25,10 +25,15 @@ OpenRA.Game.exe %*
:end
if %errorlevel% neq 0 goto crashdialog
exit /b
:crashdialog
set logs=%AppData%\OpenRA\Logs
if exist %USERPROFILE%\Documents\OpenRA\Logs (set logs=%USERPROFILE%\Documents\OpenRA\Logs)
if exist Support\Logs (set logs=%cd%\Support\Logs)
echo ----------------------------------------
echo OpenRA has encountered a fatal error.
echo * Log Files are available in Documents\OpenRA\Logs
echo * Log Files are available in %logs%
echo * FAQ is available at https://github.com/OpenRA/OpenRA/wiki/FAQ
echo ----------------------------------------
pause