#!/bin/sh
progdir=`dirname "$0"`
sed -i 's/"PS": ".*"/"PS": "\/mnt\/mmc\/Roms\/APPS\/Mod\/Emu\/ps\/launch.sh"/g' "/mnt/mmc/CFW/config/coremapping.json"
sed -i '/savestate_auto_load =/d' "/mnt/mmc/CFW/retroarch/.retroarch/config/PCSX-ReARMed/PCSX-ReARMed.cfg"
echo "savestate_auto_load = \"false\"" >> "/mnt/mmc/CFW/retroarch/.retroarch/config/PCSX-ReARMed/PCSX-ReARMed.cfg"
cp -f $progdir/Ps/PS特殊BIOS-已开启.sh $progdir
rm -f $0
$progdir/Ps/printstr "特殊BIOS-已开启"
sleep 2
sync
