Add --mono-no-redirect to run script, disables writing stdout to file

must be first flag, will not be passed to EmuHawk
This commit is contained in:
YoshiRulz 2019-12-28 02:15:51 +10:00
parent 50373ac1ad
commit 3d0ccdac45
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 7 additions and 1 deletions

View File

@ -18,4 +18,10 @@ if [ -z "$libpath" ]; then
libpath="/usr/lib/wine"
fi
export LD_LIBRARY_PATH="$libpath"
mono ./EmuHawk.exe "$@" >EmuHawkMono_laststdout.txt
if [ "$1" = "--mono-no-redirect" ]; then
shift
printf "(received --mono-no-redirect, stdout was not captured)\n" >EmuHawkMono_laststdout.txt
mono ./EmuHawk.exe "$@"
else
mono ./EmuHawk.exe "$@" >EmuHawkMono_laststdout.txt
fi