9e0630ab |
1 | #!/bin/sh |
2 | |
8f2484ca |
3 | # Wiz's timings are already good, apply this for Caanoo |
4 | if [ -e /dev/accel ]; then |
0b1dbe6b |
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 |
8f2484ca |
13 | fi |
9e0630ab |
14 | |
15 | ./pcsx "$@" |
0b1dbe6b |
16 | sync |
17 | |
18 | if [ -n "$oldmount" ]; then |
19 | mount /dev/mmcblk0p1 /mnt/sd/ -o remount,$oldmount |
20 | fi |
9e0630ab |
21 | |
22 | cd /usr/gp2x |
23 | exec ./gp2xmenu |