libretro: satisfy vita's dynarec needs in a cleaner way
[picodrive.git] / platform / pandora / PicoDrive.sh
... / ...
CommitLineData
1#!/bin/sh
2
3# 3.2.30 on pandora has broken hugetlb
4if [ "`uname -r`" != "3.2.30" ]; then
5 # 2x2M hugepages should be enough
6 sudo -n /usr/pandora/scripts/op_hugetlb.sh 4
7fi
8
9./PicoDrive "$@"
10
11# restore stuff if pico crashes
12./picorestore
13sudo -n /usr/pandora/scripts/op_lcdrate.sh 60
14sudo -n /usr/pandora/scripts/op_gamma.sh 0
15sudo -n /usr/pandora/scripts/op_hugetlb.sh 0