diff --git a/emu-configs/retroarch/ScummVM.zip b/emu-configs/retroarch/ScummVM.zip new file mode 100644 index 00000000..33e351e3 Binary files /dev/null and b/emu-configs/retroarch/ScummVM.zip differ diff --git a/functions/post_update.sh b/functions/post_update.sh index dc074924..f651d166 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -315,6 +315,12 @@ post_update() { mv -r "/var/data/mame/assets/samples/"* "$bios_folder/mame-sa/samples" set_setting_value "$mameconf" "samplepath" "$bios_folder/mame-sa/samples" "mame" + log i "Installing the missing ScummVM assets and renaming \"$mods_folder/RetroArch/ScummVM/themes\" into \"theme\"" + mv -f "$mods_folder/RetroArch/ScummVM/themes" "$mods_folder/RetroArch/ScummVM/theme" + unzip -q "$emuconfigs/retroarch/ScummVM.zip" 'scummvm/extra/*' -d "$mods_folder/RetroArch/ScummVM" + unzip -q "$emuconfigs/retroarch/ScummVM.zip" 'scummvm/theme/*' -d "$mods_folder/RetroArch/ScummVM" + set_setting_value "$ra_scummvm_conf" "themepath" "$mods_folder/RetroArch/ScummVM/theme" "libretro_scummvm" "scummvm" + log d "Verifying with user if they want to reset Ryujinx" if [[ "$(configurator_generic_question_dialog "RetroDECK 0.8.1b Ryujinx Reset" "In RetroDECK 0.8.0b the Ryujinx emulator was not properly initialized for upgrading users.\nThis would cause Ryujinx to not work properly.\n\nWould you like to reset Ryujinx to default RetroDECK settings now?\n\nIf you have made your own changes to the Ryujinx config, you can decline this reset.")" == "true" ]]; then log d "User agreed to Ryujinx reset" diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 2cf446e9..75cf1229 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -108,11 +108,11 @@ prepare_component() { # Specific Settings for ScummVM core cp -fv "$emuconfigs/retroarch/scummvm.ini" "$ra_scummvm_conf" create_dir "$mods_folder/RetroArch/ScummVM/icons" - create_dir "$mods_folder/RetroArch/ScummVM/extra" - create_dir "$mods_folder/RetroArch/ScummVM/themes" + unzip -q "$emuconfigs/retroarch/ScummVM.zip" 'scummvm/extra/*' -d "$mods_folder/RetroArch/ScummVM" + unzip -q "$emuconfigs/retroarch/ScummVM.zip" 'scummvm/theme/*' -d "$mods_folder/RetroArch/ScummVM" set_setting_value "$ra_scummvm_conf" "iconspath" "$mods_folder/RetroArch/ScummVM/icons" "libretro_scummvm" "scummvm" set_setting_value "$ra_scummvm_conf" "extrapath" "$mods_folder/RetroArch/ScummVM/extra" "libretro_scummvm" "scummvm" - set_setting_value "$ra_scummvm_conf" "themepath" "$mods_folder/RetroArch/ScummVM/themes" "libretro_scummvm" "scummvm" + set_setting_value "$ra_scummvm_conf" "themepath" "$mods_folder/RetroArch/ScummVM/theme" "libretro_scummvm" "scummvm" set_setting_value "$ra_scummvm_conf" "savepath" "$saves_folder/scummvm" "libretro_scummvm" "scummvm" set_setting_value "$ra_scummvm_conf" "browser_lastpath" "$roms_folder/scummvm" "libretro_scummvm" "scummvm" fi