From f3a96d10bd51c1a5dcf1bef538a92837fad237d0 Mon Sep 17 00:00:00 2001 From: IceNine451 Date: Mon, 19 Jan 2026 09:57:29 -0500 Subject: [PATCH] Temporary workarounds for MelonDS config setup until the new format can be handled by the Framework [skip ci] --- melonds/component_prepare.sh | 13 ++++++++----- melonds/component_update.sh | 10 ++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/melonds/component_prepare.sh b/melonds/component_prepare.sh index d705b596..009cb177 100755 --- a/melonds/component_prepare.sh +++ b/melonds/component_prepare.sh @@ -11,11 +11,14 @@ if [[ "$action" == "reset" ]]; then # Run reset-only commands create_dir -d "$XDG_CONFIG_HOME/melonDS/" cp -fv "$component_config/melonDS.toml" "$melonds_config" - set_setting_value "$melonds_config" "BIOS9Path" "$bios_path/bios9.bin" "DS" "melonds" - set_setting_value "$melonds_config" "BIOS7Path" "$bios_path/bios7.bin" "DS" "melonds" - set_setting_value "$melonds_config" "FirmwarePath" "$bios_path/firmware.bin" "DS" "melonds" - set_setting_value "$melonds_config" "SaveFilePath" "$saves_path/nds/melonds" "Instance0" "melonds" - set_setting_value "$melonds_config" "SavestatePath" "$states_path/nds/melonds" "Instance0" "melonds" +# set_setting_value "$melonds_config" "BIOS9Path" "$bios_path/bios9.bin" "DS" "melonds" +# set_setting_value "$melonds_config" "BIOS7Path" "$bios_path/bios7.bin" "DS" "melonds" +# set_setting_value "$melonds_config" "FirmwarePath" "$bios_path/firmware.bin" "DS" "melonds" +# set_setting_value "$melonds_config" "SaveFilePath" "$saves_path/nds/melonds" "Instance0" "melonds" +# set_setting_value "$melonds_config" "SavestatePath" "$states_path/nds/melonds" "Instance0" "melonds" + sed -i "s#RETRODECKSTATESDIR#${states_path}#g" "$melonds_config" + sed -i "s#RETRODECKSAVESDIR#${saves_path}#g" "$melonds_config" + sed -i "s#RETRODECKBIOSDIR#${bios_path}#g" "$melonds_config" create_dir "$saves_path/nds/melonds" create_dir "$states_path/nds/melonds" dir_prep "$bios_path" "$XDG_CONFIG_HOME/melonDS/bios" diff --git a/melonds/component_update.sh b/melonds/component_update.sh index c80a0562..73bd91b9 100644 --- a/melonds/component_update.sh +++ b/melonds/component_update.sh @@ -8,8 +8,10 @@ if [[ $(check_version_is_older_than "$version_being_updated" "0.10.1b") == "true log i "0.10.1b Upgrade - Fix Bios Path: MelonDS" - set_setting_value "$melonds_config" "BIOS9Path" "$bios_path/bios9.bin" "DS" "melonds" - set_setting_value "$melonds_config" "BIOS7Path" "$bios_path/bios7.bin" "DS" "melonds" - set_setting_value "$melonds_config" "FirmwarePath" "$bios_path/firmware.bin" "DS" "melonds" - +# set_setting_value "$melonds_config" "BIOS9Path" "$bios_path/bios9.bin" "DS" "melonds" +# set_setting_value "$melonds_config" "BIOS7Path" "$bios_path/bios7.bin" "DS" "melonds" +# set_setting_value "$melonds_config" "FirmwarePath" "$bios_path/firmware.bin" "DS" "melonds" + sed -i "s#RETRODECKSTATESDIR#${states_path}#g" "$melonds_config" + sed -i "s#RETRODECKSAVESDIR#${saves_path}#g" "$melonds_config" + sed -i "s#RETRODECKBIOSDIR#${bios_path}#g" "$melonds_config" fi