diff options
Diffstat (limited to 'frontend/320240/caanoo.gpe')
-rwxr-xr-x | frontend/320240/caanoo.gpe | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/frontend/320240/caanoo.gpe b/frontend/320240/caanoo.gpe new file mode 100755 index 0000000..9d6154a --- /dev/null +++ b/frontend/320240/caanoo.gpe @@ -0,0 +1,23 @@ +#!/bin/sh + +# Wiz's timings are already good, apply this for Caanoo +if [ -e /dev/accel ]; then + ./pollux_set "ram_timings=3,9,4,1,1,1,1" +fi + +# the sync mount causes problems when writing saves, +# probably due to many write calls, so have to get rid of it +if grep mmcblk /proc/mounts | grep -q '\<sync\>'; then + oldmount=`grep mmcblk /proc/mounts | grep '\<sync\>' | awk '{print $4}'` + mount /dev/mmcblk0p1 /mnt/sd/ -o remount,dirsync,noatime +fi + +./pcsx "$@" +sync + +if [ -n "$oldmount" ]; then + mount /dev/mmcblk0p1 /mnt/sd/ -o remount,$oldmount +fi + +cd /usr/gp2x +exec ./gp2xmenu |