aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gph/devices/gp2x/scummvm.gpe
blob: e8983aa2ce93841c4e236b8ad06e2d27ccee2083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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