| 1 | #!/bin/sh |
| 2 | |
| 3 | # Wiz's timings are already good, apply this for Caanoo |
| 4 | if [ -e /dev/accel ]; then |
| 5 | ./pollux_set "ram_timings=3,9,4,1,1,1,1" |
| 6 | fi |
| 7 | |
| 8 | # the sync mount causes problems when writing saves, |
| 9 | # probably due to many write calls, so have to get rid of it |
| 10 | if 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 |
| 13 | fi |
| 14 | |
| 15 | ./pcsx "$@" |
| 16 | sync |
| 17 | |
| 18 | if [ -n "$oldmount" ]; then |
| 19 | mount /dev/mmcblk0p1 /mnt/sd/ -o remount,$oldmount |
| 20 | fi |
| 21 | |
| 22 | cd /usr/gp2x |
| 23 | exec ./gp2xmenu |