ecmenu/bios-install

47 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
# Global variables
BASEURL="https://github.com/Abdess/retroarch_system/raw/refs/heads/libretro"
TARGETDIR="${HOME}/.var/app/org.libretro.RetroArch/config/retroarch/system"
# Sega CD
echo "Downloading Sega CD BIOS"
SEGACDPREFIX="Sega%20-%20Mega%20CD%20-%20Sega%20CD"
SEGACDFILES="bios_CD_E.bin bios_CD_J.bin bios_CD_U.bin"
for FILE in $SEGACDFILES
do
curl -L "${BASEURL}/${SEGACDPREFIX}/${FILE}" -o "${TARGETDIR}/${FILE}"
done
# Sega Saturn
echo "Downloading Sega Saturn BIOS"
SEGASATURNPREFIX="Sega%20-%20Saturn"
SEGASATURNFILES="mpr-17933.bin saturn_bios.bin sega_101.bin"
for FILE in $SEGASATURNFILES
do
curl -L "${BASEURL}/${SEGASATURNPREFIX}/${FILE}" -o "${TARGETDIR}/${FILE}"
done
# Sega Dreamcast
echo "Downloading Sega Dreamcast BIOS"
DREAMCASTPREFIX="Sega%20-%20Dreamcast"
DREAMCASTFILES="dc_boot.bin dc_flash.bin naomi_boot.bin"
for FILE in $DREAMCASTFILES
do
mkdir -p "${TARGETDIR}/dc"
curl -L "${BASEURL}/${DREAMCASTPREFIX}/${FILE}" -o "${TARGETDIR}/dc/${FILE}"
done
# Naomi Arcade Board
echo "Downloading Sega Naomi BIOS"
NAOMIPREFIX="Arcade"
NAOMIFILES="airlbios.zip awbios.zip naomi.zip"
for FILE in $NAOMIFILES
do
mkdir -p "${TARGETDIR}/dc"
curl -L "${BASEURL}/${NAOMIPREFIX}/${FILE}" -o "${TARGETDIR}/dc/${FILE}"
done