Skip to content

Commit

Permalink
$biosdir needs to be initialised in runcommand launch scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dankcushions committed Aug 21, 2019
1 parent 67497d0 commit b2190ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scriptmodules/emulators/reicast/reicast.sh
Expand Up @@ -13,6 +13,7 @@ AUDIO="$1"
ROM="$2"
rootdir="/opt/retropie"
configdir="$rootdir/configs"
biosdir="$HOME/RetroPie/BIOS/dc"

source "$rootdir/lib/inifuncs.sh"

Expand Down Expand Up @@ -72,7 +73,7 @@ function mapInput() {
echo "$params"
}

if [[ ! -f "$HOME/RetroPie/BIOS/dc/dc_boot.bin" ]]; then
if [[ ! -f "$biosdir/dc_boot.bin" ]]; then
dialog --no-cancel --pause "You need to copy the Dreamcast BIOS files (dc_boot.bin and dc_flash.bin) to the folder $biosdir to boot the Dreamcast emulator." 22 76 15
exit 1
fi
Expand All @@ -85,4 +86,4 @@ if [[ "$AUDIO" == "oss" ]]; then
aoss "$rootdir/emulators/reicast/bin/reicast" "${params[@]}" >/dev/null
else
"$rootdir/emulators/reicast/bin/reicast" "${params[@]}" >/dev/null
fi
fi

0 comments on commit b2190ae

Please sign in to comment.