From 35be9568d93639277bab9e2cafe37be4a3ad91ca Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 9 May 2024 15:09:00 +0200 Subject: [PATCH] MAME: force extract cheats --- functions/post_update.sh | 2 +- functions/prepare_component.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/post_update.sh b/functions/post_update.sh index efef3696..3dcc012b 100644 --- a/functions/post_update.sh +++ b/functions/post_update.sh @@ -330,7 +330,7 @@ post_update() { rm -rf /tmp/extra /tmp/theme log i "Placing cheats in \"/var/data/mame/cheat\"" - unzip -j "$emuconfigs/mame/cheat0264.zip" 'cheat.7z' -d "/var/data/mame/cheat" + unzip -j -o "$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 diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 3b45fd2a..adad0d90 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -809,7 +809,7 @@ prepare_component() { set_setting_value "$mameconf" "samplepath" "$bios_folder/mame-sa/samples" "mame" log i "Placing cheats in \"/var/data/mame/cheat\"" - unzip -j "$emuconfigs/mame/cheat0264.zip" 'cheat.7z' -d "/var/data/mame/cheat" + unzip -j -o "$emuconfigs/mame/cheat0264.zip" 'cheat.7z' -d "/var/data/mame/cheat" fi