Skip to content

Commit

Permalink
scummvm - Add longest journey version
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Feb 6, 2024
1 parent 75b7017 commit 0adabbc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions engines/scummvm/assets/run-scummvm-longest-journey.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
GAME="$1"
OPTIONS="$2"
INIPATH="scummvm.ini"

cd "$DIR"

if [ ! -f "$INIPATH" ]; then
echo "Creating $INIPATH"
echo -e "[scummvm]\ngfx_mode=opengl" > "$INIPATH"
fi

if [[ -d "../Original" ]]; then
echo "Assuming original path for ScummVM"
PATH_ARG="--path=../Original"
elif [[ $DIR == *"ScummVM_Windows"* ]]; then
echo "Running parent path"
PATH_ARG="--path=../../"
else
echo "Running normal path"
PATH_ARG="--path=../"
fi

ln -rsf ./share/scummvm/shaders ../shaders

LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./bin/scummvm -c "$INIPATH" --add $PATH_ARG

LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./bin/scummvm -c "$INIPATH" --fullscreen --themepath=./share/scummvm $OPTIONS $GAME
2 changes: 1 addition & 1 deletion metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3552,7 +3552,7 @@
"download_name": "scummvm"
}
],
"command": "./scum/run-scummvm.sh",
"command": "./scum/run-scummvm-longest-journey.sh",
"engine_name": "ScummVM",
"cloudNotAvailable": true,
"app_id": "6310"
Expand Down

0 comments on commit 0adabbc

Please sign in to comment.