Skip to content

Commit cdcdac0

Browse files
committed
solaris / emulationstation / moonlight - use $md_mode instead of $mode
* $mode works, as parent function uses the var, but it should be $md_mode
1 parent 44690da commit cdcdac0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scriptmodules/ports/solarus.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function configure_solarus() {
6565
addEmulator 1 "$md_id" "solarus" "$md_inst/solarus.sh %ROM%"
6666
addSystem "solarus"
6767
moveConfigDir "$home/.solarus" "$configdir/solarus"
68-
[[ "$mode" == "remove" ]] && return
68+
[[ "$md_mode" == "remove" ]] && return
6969

7070
# ensure rom dir exists
7171
mkRomDir "solarus"

scriptmodules/supplementary/emulationstation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function configure_emulationstation() {
268268
# move the $home/emulationstation configuration dir and symlink it
269269
moveConfigDir "$home/.emulationstation" "$configdir/all/emulationstation"
270270

271-
[[ "$mode" == "remove" ]] && return
271+
[[ "$md_mode" == "remove" ]] && return
272272

273273
# remove other emulation station if it's installed, so we don't end up with
274274
# both packages interfering - but leave configs alone so switching is easy

scriptmodules/supplementary/moonlight.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function install_moonlight() {
102102
function configure_moonlight() {
103103
addEmulator 1 "$md_id" "steam" "$md_inst/moonlight.sh stream -config %ROM%"
104104
addSystem "steam" "Steam Game Streaming" ".ml"
105-
[[ "$mode" == "remove" ]] && return
105+
[[ "$md_mode" == "remove" ]] && return
106106

107107
# ensure rom dir
108108
mkRomDir "steam"

0 commit comments

Comments
 (0)