| 1 | #!/bin/sh |
| 2 | |
| 3 | # stupid nub mode thing |
| 4 | nub0mode=`cat /proc/pandora/nub0/mode` |
| 5 | nub1mode=`cat /proc/pandora/nub1/mode` |
| 6 | /usr/pandora/scripts/op_nubchange.sh absolute absolute |
| 7 | |
| 8 | # 4MB for RAM (2+align) + 2MB for vram (1+overdraw) |
| 9 | # + 10MB for gpu_neon (8+overdraw) + 8MB LUTs |
| 10 | # no big deal if this fails, only performance loss |
| 11 | sudo -n /usr/pandora/scripts/op_hugetlb.sh 24 |
| 12 | |
| 13 | ./pcsx "$@" |
| 14 | |
| 15 | # restore stuff if pcsx crashes |
| 16 | ./picorestore |
| 17 | sudo -n /usr/pandora/scripts/op_lcdrate.sh 60 |
| 18 | sudo -n /usr/pandora/scripts/op_gamma.sh 0 |
| 19 | sudo -n /usr/pandora/scripts/op_hugetlb.sh 0 |
| 20 | |
| 21 | /usr/pandora/scripts/op_nubchange.sh $nub0mode $nub1mode |