aboutsummaryrefslogtreecommitdiff
path: root/dists/gph/gp2x/scummvm.gpe
diff options
context:
space:
mode:
Diffstat (limited to 'dists/gph/gp2x/scummvm.gpe')
-rw-r--r--dists/gph/gp2x/scummvm.gpe18
1 files changed, 18 insertions, 0 deletions
diff --git a/dists/gph/gp2x/scummvm.gpe b/dists/gph/gp2x/scummvm.gpe
new file mode 100644
index 0000000000..51a49f7560
--- /dev/null
+++ b/dists/gph/gp2x/scummvm.gpe
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Remount SD with forced Sync, does this really work?
+mount -o sync,remount /dev/mmcsd/disc0/part1 /mnt/sd/
+
+# Export the location of any libs ScummVM depends on
+# (to avoid installing to the NAND and overwriting the broken ones there).
+export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
+
+# Run ScummVM, important this bit.
+./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
+
+# Sync the SD card to check that everything is written.
+sync
+
+# Return to the GPH menu screen
+cd /usr/gp2x
+exec /usr/gp2x/gp2xmenu