Merge pull request #127 from retro-wertz/fix_rtps_rtpt
[pcsx_rearmed.git] / frontend / pandora / pcsx.sh
CommitLineData
303ee308 1#!/bin/sh
2
799b0b87 3# stupid nub mode thing
4nub0mode=`cat /proc/pandora/nub0/mode`
5nub1mode=`cat /proc/pandora/nub1/mode`
4ea086f6 6/usr/pandora/scripts/op_nubchange.sh absolute absolute
799b0b87 7
1ac804af 8# 4MB for RAM (2+align) + 2MB for vram (1+overdraw)
9# + 10MB for gpu_neon (8+overdraw) + 8MB LUTs
cd5abe38 10# no big deal if this fails, only performance loss
1ac804af 11sudo -n /usr/pandora/scripts/op_hugetlb.sh 24
cd5abe38 12
8886a808 13# C64x DSP for SPU
14sudo -n /usr/pandora/scripts/op_dsp_c64.sh
15
303ee308 16./pcsx "$@"
17
18# restore stuff if pcsx crashes
19./picorestore
366631aa 20sudo -n /usr/pandora/scripts/op_lcdrate.sh 60
e7b8bfad 21sudo -n /usr/pandora/scripts/op_gamma.sh 0
cd5abe38 22sudo -n /usr/pandora/scripts/op_hugetlb.sh 0
799b0b87 23
4ea086f6 24/usr/pandora/scripts/op_nubchange.sh $nub0mode $nub1mode