@neekin
Actually, different bios need to be used according to different simulators, and pcsx_rearmed is used by default
So the priority recommendation for BIOS is scph101.bin. I opened two scripts and used a special BIOS when entering the game, and restored the BIOS when exiting the game
// psxrungame[rungame](sync).sh
param=""
destination="/recalbox/share/bios/scph101.bin"
while [[ $# -gt 0 ]]; do
case $1 in
-param)
if [[ -n $2 ]]; then
param="$2"
shift 2
else
exit 1
fi
;;
*)
shift
;;
esac
done
if [[ "$param" == *"roms/psx"* ]]; then
game_name="${param#*roms/psx/}"
game_name="${game_name%.*}"
bios_file="${param%/*}/$game_name.bios"
if [[ -f "$bios_file" ]]; then
cp "$bios_file" "$destination"
fi
fi
// psxexitgame[endgame](sync).sh
param=""
destination="/recalbox/share/bios/scph101.bin"
original_destination="/recalbox/share/bios/psx/scph101.bin"
while [[ $# -gt 0 ]]; do
case $1 in
-param)
if [[ -n $2 ]]; then
param="$2"
shift 2
else
exit 1
fi
;;
*)
shift
;;
esac
done
if [[ "$param" == *"roms/psx"* ]]; then
game_name="${param#*roms/psx/}"
game_name="${game_name%.*}"
bios_file="${param%/*}/$game_name.bios"
if [[ -f "$bios_file" ]]; then
cp "$original_destination" "$destination"
fi
fi