From 9f63a80ad0cac14a3f140e742c93fd2c7e2b3d2e Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 5 May 2024 22:01:17 +0200 Subject: [PATCH] MAME-SA: placing cheats in post-update --- functions/post_update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/post_update.sh b/functions/post_update.sh index 787765d0..84d39cab 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -326,6 +326,9 @@ post_update() { 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 i "Placing cheats in \"/var/data/mame/cheat\"" + unzip -j "$emuconfigs/mame/cheat0264.zip" 'cheat.7z' -d "/var/data/mame/cheat" + 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"