Skip to content

Commit

Permalink
Merge pull request #3535 from s1eve-mcdichae1/flycast-redux
Browse files Browse the repository at this point in the history
lr-flycast: (QOL) add to Arcade system (redux)
  • Loading branch information
joolswills authored May 25, 2022
2 parents 5cd6dd2 + 0f9d896 commit a1a1633
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions scriptmodules/libretrocores/lr-flycast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,31 @@ function install_lr-flycast() {
}

function configure_lr-flycast() {
local def=0
isPlatform "kms" && def=1
# segfaults on the rpi without redirecting stdin from </dev/null
addEmulator $def "$md_id" "dreamcast" "$md_inst/flycast_libretro.so </dev/null"
addSystem "dreamcast"
local sys
local systems=(dreamcast arcade)
local def
for sys in "${systems[@]}"; do
def=0
if isPlatform "kms" && [[ "$sys" == "dreamcast" ]]; then
def=1
fi
# segfaults on the rpi without redirecting stdin from </dev/null
addEmulator $def "$md_id" "$sys" "$md_inst/flycast_libretro.so </dev/null"
addSystem "$sys"
done

[[ "$md_mode" == "remove" ]] && return

mkRomDir "dreamcast"

local params=()
# system-specific
if isPlatform "gl"; then
params+=("video_shared_context" "true")
fi

defaultRAConfig "dreamcast" "${params[@]}"
for sys in "${systems[@]}"; do
mkRomDir "$sys"
defaultRAConfig "$sys" "${params[@]}"
done

mkUserDir "$biosdir/dc"
}

0 comments on commit a1a1633

Please sign in to comment.