Skip to content

Commit

Permalink
lr-flycast: add to Arcade system (redux)
Browse files Browse the repository at this point in the history
Ref: #3517

(Revisited for `defaultRAConfig`)
  • Loading branch information
s1eve-mcdichae1 committed May 24, 2022
1 parent 5cd6dd2 commit 0f9d896
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 0f9d896

Please sign in to comment.