aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gph/devices/gp2x/scummvm.gpe
diff options
context:
space:
mode:
authorDavid-John Willis2011-04-12 12:05:56 +0100
committerDavid-John Willis2011-04-13 08:01:15 +0100
commitcb3e3e7125274dba4437f0beb35b461405eb3442 (patch)
treebf414509142fe8e02593f77c8e5188974ee964cc /backends/platform/gph/devices/gp2x/scummvm.gpe
parent65fc72e30a885f6adca99505ee869e010f94c1c3 (diff)
downloadscummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.tar.gz
scummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.tar.bz2
scummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.zip
GP2X: Move build support files into the GPH backend.
Diffstat (limited to 'backends/platform/gph/devices/gp2x/scummvm.gpe')
-rw-r--r--backends/platform/gph/devices/gp2x/scummvm.gpe18
1 files changed, 18 insertions, 0 deletions
diff --git a/backends/platform/gph/devices/gp2x/scummvm.gpe b/backends/platform/gph/devices/gp2x/scummvm.gpe
new file mode 100644
index 0000000000..e8983aa2ce
--- /dev/null
+++ b/backends/platform/gph/devices/gp2x/scummvm.gpe
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# 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
+
+# Sync the SD card to check that everything is written.
+sync
+
+# Return to the GPH menu screen
+cd /usr/gp2x
+exec /usr/gp2x/gp2xmenu