aboutsummaryrefslogtreecommitdiff
path: root/frontend/320240/caanoo.gpe
diff options
context:
space:
mode:
authornotaz2012-02-27 02:12:48 +0200
committernotaz2012-02-28 01:46:14 +0200
commit0b1dbe6bc25227c910a4dea2fadcdda540add969 (patch)
treea152b007ee55d54228a3fc418fe9604222272721 /frontend/320240/caanoo.gpe
parent42a261f1abb21841442aa3e366201565b3143480 (diff)
downloadpcsx_rearmed-0b1dbe6bc25227c910a4dea2fadcdda540add969.tar.gz
pcsx_rearmed-0b1dbe6bc25227c910a4dea2fadcdda540add969.tar.bz2
pcsx_rearmed-0b1dbe6bc25227c910a4dea2fadcdda540add969.zip
frontend: sync workaround for caanoo
trying to deal with "save corruption", no idea if this helps as this never happens for me.
Diffstat (limited to 'frontend/320240/caanoo.gpe')
-rwxr-xr-xfrontend/320240/caanoo.gpe14
1 files changed, 13 insertions, 1 deletions
diff --git a/frontend/320240/caanoo.gpe b/frontend/320240/caanoo.gpe
index 95a43d5..9d6154a 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 '\<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