aboutsummaryrefslogtreecommitdiff
path: root/pandora/pcsx.sh
blob: 2077a29ad53451903068618dea387042c9decf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# stupid nub mode thing
nub0mode=`cat /proc/pandora/nub0/mode`
nub1mode=`cat /proc/pandora/nub1/mode`
echo absolute > /proc/pandora/nub0/mode
echo absolute > /proc/pandora/nub1/mode

./pcsx "$@"

# restore stuff if pcsx crashes
./picorestore
sudo -n /usr/pandora/scripts/op_lcdrate.sh 60

echo "$nub0mode" > /proc/pandora/nub0/mode
echo "$nub1mode" > /proc/pandora/nub1/mode