Search for any supported BIOS.

This commit is contained in:
fewtarius 2022-03-14 07:33:11 -04:00
parent dfb30e7d8e
commit b446c3f2f8
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -32,4 +32,15 @@ EOF
fi
fi
yabasanshiro -r 2 -i "${1}" -b /storage/roms/bios/saturn_bios.bin >/var/log/exec.log 2>&1 ||:
BIOS=""
for BIOS in saturn_bios.bin sega_101.bin mpr-17933.bin mpr-18811-mx.ic1 mpr-19367-mx.ic1 stvbios.zip
do
BIOS=$(find /storage/roms/bios -name ${BIOS} -print 2>/dev/null)
if [ ! -z "${BIOS}" ]
then
BIOS="-b ${BIOS}"
break
fi
done
yabasanshiro -r 2 -i "${1}" ${BIOS} >/var/log/exec.log 2>&1 ||: