Skip to content

Commit 6068057

Browse files
committed
pifba - only copy default configs on install
1 parent cdcdac0 commit 6068057

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

scriptmodules/emulators/pifba.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ function configure_pifba() {
4949
mkRomDir "fba"
5050
mkRomDir "neogeo"
5151

52-
mkUserDir "$md_conf_root/fba"
52+
if [[ "$md_mode" == "install" ]]; then
53+
mkUserDir "$md_conf_root/fba"
5354

54-
local config
55-
for config in fba2x.cfg capex.cfg; do
56-
# move old config if it exists
57-
moveConfigFile "$md_inst/$config" "$md_conf_root/fba/$config"
58-
copyDefaultConfig "$config.template" "$md_conf_root/fba/$config"
59-
done
55+
local config
56+
for config in fba2x.cfg capex.cfg; do
57+
# move old config if it exists
58+
moveConfigFile "$md_inst/$config" "$md_conf_root/fba/$config"
59+
copyDefaultConfig "$config.template" "$md_conf_root/fba/$config"
60+
done
61+
fi
6062

6163
local def=0
6264
isPlatform "rpi1" && def=1

0 commit comments

Comments
 (0)