debugger support, fix direct launch

This commit is contained in:
Onni Kukkonen
2022-08-05 20:35:54 +03:00
parent 224f9236ae
commit 498644a078

View File

@@ -14,15 +14,20 @@ function launch_game {
exit 0 exit 0
fi fi
# actually launch the game # actually launch the game
LD_PRELOAD="$LD_PRELOAD /tmp/libCreamlinux.so" $SELECTED_GAME "$@" if [ "$CREAM_DEBUGGER" ]; then
LD_PRELOAD="$LD_PRELOAD /tmp/libCreamlinux.so" $CREAM_DEBUGGER $SELECTED_GAME
exit 0
fi
LD_PRELOAD="$LD_PRELOAD /tmp/libCreamlinux.so" $SELECTED_GAME
exit 0
} }
# ifs is required because zenity fucks up without it # ifs is required because zenity fucks up without it
export IFS="" export IFS=""
if [ -z "$CREAM_GAME_NAME" ]; then if [ -z "$CREAM_GAME_NAME" ]; then
echo "" echo "launching directly"
else else
SELECTED_GAME=$CREAM_GAME_NAME SELECTED_GAME="./$CREAM_GAME_NAME"
launch_game launch_game
fi fi