Skip to content

Commit 3e3047d

Browse files
committed
lr-fbneo - re-order configure and skip config/folder setup on removal
1 parent 8f8118f commit 3e3047d

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

scriptmodules/libretrocores/lr-fbneo.sh

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,6 @@ function install_lr-fbneo() {
4949
}
5050

5151
function configure_lr-fbneo() {
52-
local dir
53-
for dir in arcade fba neogeo; do
54-
mkRomDir "$dir"
55-
ensureSystemretroconfig "$dir"
56-
done
57-
58-
# Create samples directory
59-
mkUserDir "$biosdir/fbneo"
60-
mkUserDir "$biosdir/fbneo/samples"
61-
62-
# copy hiscore.dat
63-
cp "$md_inst/metadata/hiscore.dat" "$biosdir/fbneo/"
64-
chown $user:$user "$biosdir/fbneo/hiscore.dat"
65-
66-
# Set core options
67-
setRetroArchCoreOption "fbneo-diagnostic-input" "Hold Start"
68-
6952
local def=1
7053
isPlatform "armv6" && def=0
7154
addEmulator 0 "$md_id" "arcade" "$md_inst/fbneo_libretro.so"
@@ -106,4 +89,23 @@ function configure_lr-fbneo() {
10689
addSystem "nes"
10790
addSystem "ngp"
10891
addSystem "ngpc"
92+
93+
[[ "$md_mode" == "remove" ]] && return
94+
95+
local dir
96+
for dir in arcade fba neogeo; do
97+
mkRomDir "$dir"
98+
ensureSystemretroconfig "$dir"
99+
done
100+
101+
# Create samples directory
102+
mkUserDir "$biosdir/fbneo"
103+
mkUserDir "$biosdir/fbneo/samples"
104+
105+
# copy hiscore.dat
106+
cp "$md_inst/metadata/hiscore.dat" "$biosdir/fbneo/"
107+
chown $user:$user "$biosdir/fbneo/hiscore.dat"
108+
109+
# Set core options
110+
setRetroArchCoreOption "fbneo-diagnostic-input" "Hold Start"
109111
}

0 commit comments

Comments
 (0)