From 2344194f4244891651c3fb31b6134a9343fc6a32 Mon Sep 17 00:00:00 2001 From: d10sfan Date: Fri, 10 Nov 2023 20:49:37 -0600 Subject: [PATCH] scummvm - cloud support for sam & max --- .../scummvm/assets/run-scummvm-sammaxhit.sh | 25 +++++++++++++++++++ metadata/packagessniper_v2.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 engines/scummvm/assets/run-scummvm-sammaxhit.sh diff --git a/engines/scummvm/assets/run-scummvm-sammaxhit.sh b/engines/scummvm/assets/run-scummvm-sammaxhit.sh new file mode 100755 index 000000000..809133d0b --- /dev/null +++ b/engines/scummvm/assets/run-scummvm-sammaxhit.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +ORIGINALPWD="$PWD" + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" + +if [ ! -f scummvm.ini ]; then + echo "No scummvm.ini file detected, so creating" + echo -e "[scummvm]" >> scummvm.ini + echo -e "gfx_mode=surfacesdl" >> scummvm.ini +fi + +LD_LIBRARY_PATH="lib:$LD_LIBRARY_PATH" ./bin/scummvm -c scummvm.ini --add --path=../ --recursive + +cd "$ORIGINALPWD" +cd .. + +LD_LIBRARY_PATH="$ORIGINALPWD/scum/lib:$LD_LIBRARY_PATH" "$ORIGINALPWD/scum/bin/scummvm" -c "$ORIGINALPWD/scum/scummvm.ini" --fullscreen --themepath="$ORIGINALPWD/scum/share/scummvm" --add --path=. + +if ! [[ -z "${LUX_STEAM_CLOUD}" ]]; then + LD_LIBRARY_PATH="$ORIGINALPWD/scum/lib:$LD_LIBRARY_PATH" "$ORIGINALPWD/scum/bin/scummvm" -c "$ORIGINALPWD/scum/scummvm.ini" --fullscreen --themepath="$ORIGINALPWD/scum/share/scummvm" --savepath=. +else + LD_LIBRARY_PATH="$ORIGINALPWD/scum/lib:$LD_LIBRARY_PATH" "$ORIGINALPWD/scum/bin/scummvm" -c "$ORIGINALPWD/scum/scummvm.ini" --fullscreen --themepath="$ORIGINALPWD/scum/share/scummvm" +fi diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index 85f43d8bd..5af928883 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -6132,7 +6132,7 @@ "download_name": "scummvm" } ], - "command": "./scum/run-scummvm-one-up.sh", + "command": "./scum/run-scummvm-sammaxhit.sh", "engine_name": "ScummVM", "cloudAvailable": true, "app_id": "355170" @@ -7974,6 +7974,7 @@ ], "engine_name": "ScummVM", "cloudAvailable": true, + "cloudSupported": true, "app_id": "255920" }, {