frontend: sync workaround for caanoo
[pcsx_rearmed.git] / frontend / 320240 / caanoo.gpe
... / ...
CommitLineData
1#!/bin/sh
2
3# Wiz's timings are already good, apply this for Caanoo
4if [ -e /dev/accel ]; then
5 ./pollux_set "ram_timings=3,9,4,1,1,1,1"
6fi
7
8# the sync mount causes problems when writing saves,
9# probably due to many write calls, so have to get rid of it
10if grep mmcblk /proc/mounts | grep -q '\<sync\>'; then
11 oldmount=`grep mmcblk /proc/mounts | grep '\<sync\>' | awk '{print $4}'`
12 mount /dev/mmcblk0p1 /mnt/sd/ -o remount,dirsync,noatime
13fi
14
15./pcsx "$@"
16sync
17
18if [ -n "$oldmount" ]; then
19 mount /dev/mmcblk0p1 /mnt/sd/ -o remount,$oldmount
20fi
21
22cd /usr/gp2x
23exec ./gp2xmenu