1#!/bin/sh
2
3# Export the location of any libs ScummVM depends on
4# (to avoid installing to the NAND and overwriting the broken ones there).
5export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
6
7# Run ScummVM, important this bit.
8./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
9
10# Sync the SD card to check that everything is written.
11sync
12
13# Return to the GPH menu screen
14cd /usr/gp2x
15exec /usr/gp2x/gp2xmenu
16