#!/bin/sh
progdir=`dirname "$0"`
sed -i 's/"PS": ".*"/"PS": "pcsx_rearmed_libretro.so"/g' "/mnt/mmc/CFW/config/coremapping.json"
sed -i '/savestate_auto_load =/d' "/mnt/mmc/CFW/retroarch/.retroarch/config/PCSX-ReARMed/PCSX-ReARMed.cfg"
cp -f $progdir/Ps/PS特殊BIOS-已关闭.sh $progdir
cp -f "${progdir}/Ps/psxonpsp660.bin" "/mnt/mmc/BIOS/psxonpsp660.bin"
cp -f "${progdir}/Ps/scph101.bin" "/mnt/mmc/BIOS/scph101.bin"
cp -f "${progdir}/Ps/scph1001.bin" "/mnt/mmc/BIOS/scph1001.bin"
rm -f $0
$progdir/Ps/printstr "特殊BIOS-已关闭"
sleep 2
sync
