aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe
diff options
context:
space:
mode:
authorJohn Willis2010-08-26 11:24:26 +0000
committerJohn Willis2010-08-26 11:24:26 +0000
commit1fea42949796cb341067b17000569554c5861b6e (patch)
treeca57c0e276f7148bf171859fd2325e73e58e6565 /backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe
parentf8276a36fb598190ae93489ef7d7049a90ec4e52 (diff)
downloadscummvm-rg350-1fea42949796cb341067b17000569554c5861b6e.tar.gz
scummvm-rg350-1fea42949796cb341067b17000569554c5861b6e.tar.bz2
scummvm-rg350-1fea42949796cb341067b17000569554c5861b6e.zip
GP2XWIZ: Add initial support for the GPH Caanoo.
Most of the codebase is the same, but the toolchain and libs are different. Support for Caanoo specific features will follow, I just want to get the build support into trunk for now. svn-id: r52400
Diffstat (limited to 'backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe')
-rwxr-xr-xbackends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe16
1 files changed, 16 insertions, 0 deletions
diff --git a/backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe b/backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe
new file mode 100755
index 0000000000..a8f2aae0fe
--- /dev/null
+++ b/backends/platform/gp2xwiz/caanoo/scummvm-gdb.gpe
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# 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 via GDB (so make sure you have a terminal open or serial).
+# Oh, and GDB installed of course ;)
+gdb --args ./scummvm.caanoo --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