Skip to content

Commit a1a1633

Browse files
authored
Merge pull request #3535 from s1eve-mcdichae1/flycast-redux
lr-flycast: (QOL) add to Arcade system (redux)
2 parents 5cd6dd2 + 0f9d896 commit a1a1633

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

scriptmodules/libretrocores/lr-flycast.sh

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,31 @@ function install_lr-flycast() {
6969
}
7070

7171
function configure_lr-flycast() {
72-
local def=0
73-
isPlatform "kms" && def=1
74-
# segfaults on the rpi without redirecting stdin from </dev/null
75-
addEmulator $def "$md_id" "dreamcast" "$md_inst/flycast_libretro.so </dev/null"
76-
addSystem "dreamcast"
72+
local sys
73+
local systems=(dreamcast arcade)
74+
local def
75+
for sys in "${systems[@]}"; do
76+
def=0
77+
if isPlatform "kms" && [[ "$sys" == "dreamcast" ]]; then
78+
def=1
79+
fi
80+
# segfaults on the rpi without redirecting stdin from </dev/null
81+
addEmulator $def "$md_id" "$sys" "$md_inst/flycast_libretro.so </dev/null"
82+
addSystem "$sys"
83+
done
7784

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

80-
mkRomDir "dreamcast"
81-
8287
local params=()
8388
# system-specific
8489
if isPlatform "gl"; then
8590
params+=("video_shared_context" "true")
8691
fi
8792

88-
defaultRAConfig "dreamcast" "${params[@]}"
93+
for sys in "${systems[@]}"; do
94+
mkRomDir "$sys"
95+
defaultRAConfig "$sys" "${params[@]}"
96+
done
8997

9098
mkUserDir "$biosdir/dc"
9199
}

0 commit comments

Comments
 (0)