Skip to content

Commit

Permalink
mupen64plus.sh: use extracted configVersion in GlideN64 config section
Browse files Browse the repository at this point in the history
We already extract GlideN64 config version. Use it to finally set right config version in mupen64plus package script. Mupen64plus startup script should do this as well, but it is not wrong to do it here.
-set right GlideN64 config version in "$config.rp-dist"
-set right GlideN64 config version in "$config" because GlideN64 overwrites user settings if config version is wrong
fixes: RetroPie#3654
  • Loading branch information
gizmo98 authored Mar 19, 2023
1 parent e05f4e9 commit 138ad7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scriptmodules/emulators/mupen64plus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ function configure_mupen64plus() {
# on the rp-dist file. This preserves any user configs from modification and allows us to have
# a default config for reference
if [[ -f "$config" ]]; then
# patch existing mupen64plus config because Gliden64 overwrites GlideN64 user configs
# if configVersion is wrong
grep -q "configVersion" "$config" && iniConfig " = " "" "$config" && iniSet "configVersion" "$(cat $md_inst/share/mupen64plus/GLideN64_config_version.ini)"

mv "$config" "$config.user"
su "$user" -c "$cmd"
mv "$config" "$config.rp-dist"
Expand All @@ -345,7 +349,7 @@ function configure_mupen64plus() {
echo "[Video-GLideN64]" >> "$config"
fi
# Settings version. Don't touch it.
iniSet "configVersion" "29"
iniSet "configVersion" "$(cat $md_inst/share/mupen64plus/GLideN64_config_version.ini)"
# Bilinear filtering mode (0=N64 3point, 1=standard)
iniSet "bilinearMode" "1"
iniSet "EnableFBEmulation" "True"
Expand Down

0 comments on commit 138ad7e

Please sign in to comment.