3 if command -v zenity
> /dev
/null
; then
4 zenity
--no-wrap --no-markup --error --title "OpenRA - @title@" --text "$1" 2>/dev
/null
11 pushd "@out@/lib/openra_2019-@name@" > /dev
/null
13 # Check for missing assets
14 assetsError
='@assetsError@'
15 if [[ -n "$assetsError" && ! -d "$HOME/.openra/Content/@name@" ]]; then
16 show_error
"$assetsError"
20 mono
--debug OpenRA.Game.exe Game.Mod
=@name@ Engine.LaunchPath
="@out@/bin/openra-@name@" Engine.ModSearchPaths
="@out@/lib/openra_2019-@name@/mods" "$@"
22 # Show a crash dialog if something went wrong
23 if (( $?
!= 0 && $?
!= 1 )); then
24 show_error $
'OpenRA - @title@ has encountered a fatal error.\nPlease refer to the crash logs for more information.\n\nLog files are located in ~/.openra/Logs'