Skip to content

Commit 589da36

Browse files
authored
Merge pull request #3494 from joolswills/fbneo_missing_configs
lr-fbneo - add ensureSystemretroconfig calls for all fbneo subsystems
2 parents 5255c5b + 4f443cf commit 589da36

File tree

1 file changed

+25
-20
lines changed

1 file changed

+25
-20
lines changed

scriptmodules/libretrocores/lr-fbneo.sh

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,35 @@ function configure_lr-fbneo() {
7474
addEmulator 0 "$md_id-ngpc" "ngpc" "$md_inst/fbneo_libretro.so --subsystem ngp"
7575
addEmulator 0 "$md_id-chf" "channelf" "$md_inst/fbneo_libretro.so --subsystem chf"
7676

77-
addSystem "arcade"
78-
addSystem "neogeo"
79-
addSystem "fba"
77+
local systems=(
78+
"arcade"
79+
"neogeo"
80+
"fba"
81+
"pcengine"
82+
"gamegear"
83+
"mastersystem"
84+
"megadrive"
85+
"sg-1000"
86+
"coleco"
87+
"msx"
88+
"zxspectrum"
89+
"fds"
90+
"nes"
91+
"ngp"
92+
"ngpc"
93+
"channelf"
94+
)
8095

81-
addSystem "pcengine"
82-
addSystem "gamegear"
83-
addSystem "mastersystem"
84-
addSystem "megadrive"
85-
addSystem "sg-1000"
86-
addSystem "coleco"
87-
addSystem "msx"
88-
addSystem "zxspectrum"
89-
addSystem "fds"
90-
addSystem "nes"
91-
addSystem "ngp"
92-
addSystem "ngpc"
93-
addSystem "channelf"
96+
local system
97+
for system in "${systems[@]}"; do
98+
addSystem "$system"
99+
done
94100

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

97-
local dir
98-
for dir in arcade fba neogeo; do
99-
mkRomDir "$dir"
100-
ensureSystemretroconfig "$dir"
103+
for system in "${systems[@]}"; do
104+
mkRomDir "$system"
105+
ensureSystemretroconfig "$system"
101106
done
102107

103108
# Create directories for all support files

0 commit comments

Comments
 (0)