Prevent crash dialog from popping up when the game restarts

Fixes #6887
This commit is contained in:
Oliver Brakmann
2014-11-04 21:29:16 +01:00
parent e6bf1cafd3
commit 64506b856a
5 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
# launch script (executed by Desura)
mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@"
if [ $? != 0 ]
if [ $? != 0 && $? != 1 ]
then
ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."
$ZENITY --question --title "OpenRA" --text "OpenRA has encountered a fatal error.\nLog Files are available in ~/.openra." --ok-label "Quit" --cancel-label "View FAQ" || xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ
exit 1
fi
fi