Fixes for Android - finally I have some video output!
But it doesn't work on my PC now
This commit is contained in:
22
start.sh
Normal file → Executable file
22
start.sh
Normal file → Executable file
@@ -18,25 +18,15 @@ get_backtrace() {
|
||||
echo "HINT: Please send the above output to openlierox@az2000.de."
|
||||
}
|
||||
|
||||
cd share/gamedir
|
||||
cd data
|
||||
ulimit -c unlimited # activate core-files
|
||||
rm core* 2>/dev/null # remove old core-files
|
||||
|
||||
bin="/dev/null"
|
||||
[ -x ../../$bin ] || bin="build/Xcode/build/Debug/Commander Genius.app/Contents/MacOS/Commander Genius"
|
||||
[ -x ../../$bin ] || bin=build/Xcode/build/Release/Commander Genius.app/Contents/MacOS/Commander Genius
|
||||
[ -x ../../$bin ] || bin=bin/commandergenius
|
||||
../../$bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
|
||||
[ -x ../$bin ] || bin="build/Xcode/build/Debug/Commander Genius.app/Contents/MacOS/Commander Genius"
|
||||
[ -x ../$bin ] || bin=build/Xcode/build/Release/Commander Genius.app/Contents/MacOS/Commander Genius
|
||||
[ -x ../$bin ] || bin=bin/commandergenius
|
||||
../$bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
|
||||
|
||||
# game was exited, check for core-files (if crashed)
|
||||
[ -e core* ] && get_backtrace ../../bin/commandergenius core*
|
||||
mv core* ../.. 2>/dev/null
|
||||
mv core* .. 2>/dev/null
|
||||
|
||||
if [ -e /proc/sys/kernel/core_pattern ] && [ "$(cat /proc/sys/kernel/core_pattern)" != "" ]; then
|
||||
corefile="$(sh -c "echo $(cat /proc/sys/kernel/core_pattern | sed -e "s/%e/commandergenius/g" -e "s/%p/*/g" -e "s/%u/$(id -u)/g" -e "s/%t/*/g")")"
|
||||
if [ -e "$corefile" ]; then
|
||||
echo "found corefile $corefile"
|
||||
get_backtrace ../../bin/commandergenius "$corefile"
|
||||
mv "$corefile" ../..
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user