From 26063dec2b82f8782039f8724bfc52b412ac78bb Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 30 May 2024 17:17:35 -0400 Subject: [PATCH] Add Configurator tool to rebuild any missing default ROM folders - Also add missing return to menu after completion of empty rom folder removal tool --- tools/configurator.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/configurator.sh b/tools/configurator.sh index 04ee365e..4c0d9278 100644 --- a/tools/configurator.sh +++ b/tools/configurator.sh @@ -53,6 +53,7 @@ source /app/libexec/global.sh # - Move Mods folder # - Move Texture Packs folder # - Tool: Remove Empty ROM Folders +# - Tool: Rebuild All ROM Folders # - Tool: Compress Games # - Compress Single Game # - Compress Multiple Games - CHD @@ -561,6 +562,7 @@ configurator_retrodeck_tools_dialog() { local choices=( "Tool: Move Folders" "Move RetroDECK folders between internal/SD card or to a custom location" "Tool: Remove Empty ROM Folders" "Remove some or all of the empty ROM folders" + "Tool: Rebuild All ROM Folders" "Rebuild any missing default ROM folders" "Tool: Compress Games" "Compress games for systems that support it" "Install: RetroDECK Controller Layouts" "Install the custom RetroDECK controller layouts on Steam" "Install: PS3 Firmware" "Download and install PS3 firmware for use with the RPCS3 emulator" @@ -613,6 +615,16 @@ configurator_retrodeck_tools_dialog() { rm -f "$folder" done fi + + configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete." + configurator_retrodeck_tools_dialog + ;; + + "Tool: Rebuild All ROM Folders" ) + log i "Configurator: opening \"$choice\" menu" + es-de --create-system-dirs + configurator_generic_dialog "RetroDECK Configurator - Rebuild All ROM Folders" "The rebuilding process is complete.\n\nAll missing default ROM folders will now exist in $roms_folder" + configurator_retrodeck_tools_dialog ;; "Tool: Compress Games" )