Last active
December 10, 2018 10:43
-
-
Save masanobuimai/85c033fef853538dea1f65913a33eab8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 1 > /media/debug.txt | |
#link the usb drive dirs into the /gaadata | |
cd /media/games | |
for D in *; do | |
if [ -d "${D}" ]; then | |
ln -s /media/games/${D} /gaadata/${D} | |
ln -s /media/games/${D} /data/AppData/sony/pcsx/${D} | |
mkdir -p /media/games/${D}/.pcsx | |
cp -n /media/games/${D}/pcsx.cfg /media/games/${D}/.pcsx | |
fi | |
done | |
echo 2 >> /media/debug.txt | |
#ls -laR /data/AppData/sony/pcsx > /media/ls0.txt | |
cd /media/backup | |
for D in *; do | |
if [ -d "${D}" ]; then | |
rm -fr /data/AppData/sony/pcsx/${D}/.pcsx | |
ln -s /media/backup/${D} /data/AppData/sony/pcsx/${D}/.pcsx | |
fi | |
done | |
echo 3 >> /media/debug.txt | |
#ls -laR /data/AppData/sony/pcsx > /media/ls1.txt | |
#cp /gaadata/databases/regional.db /media/games/original.db | |
#install our custom db | |
cp /media/games/custom.db /gaadata/databases/regional.db | |
sleep 5s | |
echo 4 >> /media/debug.txt | |
#enable Select-Triangle to in game menu | |
export PCSX_ESC_KEY=2 | |
# kill the ui process | |
killall ui_menu | |
sleep 5s | |
echo 5 >> /media/debug.txt | |
cd /data/AppData/sony/pcsx | |
#sync usb drive | |
sync | |
echo 6 >> /media/debug.txt | |
# restart ui | |
/usr/sony/bin/ui_menu --power-off-enable | |
# sleep forever so the usb is never unmounted | |
while :; do sleep 10; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
USBメモリ側に予め
/backup/1〜20/pcsx.cfg
を作っておく。