X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2F320240%2Fcaanoo.gpe;h=9d6154a4baac12860984a18daa3aef481bd8821d;hp=95a43d53cb5bc593d9163a3537d794dec9e526ed;hb=0b1dbe6bc25227c910a4dea2fadcdda540add969;hpb=42a261f1abb21841442aa3e366201565b3143480 diff --git a/frontend/320240/caanoo.gpe b/frontend/320240/caanoo.gpe index 95a43d53..9d6154a4 100755 --- a/frontend/320240/caanoo.gpe +++ b/frontend/320240/caanoo.gpe @@ -2,10 +2,22 @@ # 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" + ./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 '\'; then + oldmount=`grep mmcblk /proc/mounts | grep '\' | 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