aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoldmojo2020-04-23 20:08:58 +0200
committergoldmojo2020-04-23 20:08:58 +0200
commit9d99cfe35e7d90ea572b989167f7711cb1e9316c (patch)
tree6d5d51f37b68066068217ab2fa26690409887911
parent3f54421c79377c3d0bc2d5be7cee209d75feea77 (diff)
downloadscummvm-rg350-9d99cfe35e7d90ea572b989167f7711cb1e9316c.tar.gz
scummvm-rg350-9d99cfe35e7d90ea572b989167f7711cb1e9316c.tar.bz2
scummvm-rg350-9d99cfe35e7d90ea572b989167f7711cb1e9316c.zip
Starts ScummVM with gameid.svm as first arg
-rw-r--r--dists/gcw0/default.gcw0.desktop2
-rwxr-xr-xdists/gcw0/scummvm.sh8
2 files changed, 7 insertions, 3 deletions
diff --git a/dists/gcw0/default.gcw0.desktop b/dists/gcw0/default.gcw0.desktop
index c7ed43bdd7..08e7e573f2 100644
--- a/dists/gcw0/default.gcw0.desktop
+++ b/dists/gcw0/default.gcw0.desktop
@@ -7,7 +7,7 @@ Comment[he]=פרשן למספר משחקי הרפתקאות
Comment[de]=Interpreter für diverse Abenteuerspiele
Comment[es]=Intérprete para varias aventuras gráficas
Comment[ca]=Intèrpret per diverses aventures gràfiques
-Exec=scummvm.sh
+Exec=scummvm.sh %f
Icon=scummvm
Terminal=false
Type=Application
diff --git a/dists/gcw0/scummvm.sh b/dists/gcw0/scummvm.sh
index 7c1d532f77..c9d2718376 100755
--- a/dists/gcw0/scummvm.sh
+++ b/dists/gcw0/scummvm.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+romPath=`dirname "$1"`
+romName=`basename "$1"`
+
cd `dirname $0`
if [ ! -f $HOME/.scummvmrc ] ; then
@@ -9,7 +12,8 @@ fi
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
if [ ! -f $HOME/.debug_scummvmrc ] ; then
- exec ./scummvm 2>&1 >/var/tmp/scummvm.log
+ exec ./scummvm -f -p"$romPath" ${romName%%.*} 2>&1 >/var/tmp/scummvm.log
else
- exec ./scummvm -d 11 2>&1 >/var/tmp/scummvm.log
+ exec ./scummvm -d 11 -f -p"$romPath" ${romName%%.*} 2>&1 >/var/tmp/scummvm.log
fi
+