fix start.sh

This commit is contained in:
Onni Kukkonen
2022-04-30 23:07:31 +03:00
parent 3a25a56ee9
commit 7482706d81

View File

@@ -3,13 +3,13 @@ result=$(zenity --title="Launch Options" --list "Start Game" "Edit Creamlinux se
# Supported games
GAME_NAMES=("Hearts Of Iron IV" "Europa Universalis IV" "Cities: Skylines" "Stellaris" "PDX Launcher (don't click play)")
GAME_BINARIES=("./hoi4" "./eu4" "./Cities.x64" "./stellaris" "./dowser")
launch_game () {
function launch_game {
# LD_PRELOAD doesn't support spaces, do this instead
cp "$PWD/libCreamlinux.so" /tmp/libCreamlinux.so
# reset backwards compatible stuff so games that DO use it don't break
unset IFS
# paradox launcher segfaults with creamlinux, if launching launcher, do it differently
if [ "$SELECTED_GAME" -eq "./dowser" ]; then
if [ "$SELECTED_GAME" = "./dowser" ]; then
$SELECTED_GAME "$@"
exit 0
fi
@@ -20,6 +20,8 @@ launch_game () {
export IFS=""
if [ -z "$CREAM_GAME_NAME" ]; then
echo ""
else
SELECTED_GAME=$CREAM_GAME_NAME
launch_game
fi