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