mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
Merge pull request #811 from icenine451/cooker-0.8.2b-icenine451
Cooker 0.8.2b icenine451
This commit is contained in:
commit
04bddf2c79
|
@ -1,3 +1,4 @@
|
||||||
|
citra^Citra (Nintendo 3DS Standalone Emulator, via Ponzu)
|
||||||
dolphin^Dolphin (GameCube / Wii Standalone Emulator)
|
dolphin^Dolphin (GameCube / Wii Standalone Emulator)
|
||||||
duckstation^Duckstation (Sony Playstation Standalone Emulator)
|
duckstation^Duckstation (Sony Playstation Standalone Emulator)
|
||||||
gb^Nintendo GameBoy
|
gb^Nintendo GameBoy
|
||||||
|
@ -11,7 +12,7 @@ ppsspp^PPSSPP (Sony PSP Standalone Emulator)
|
||||||
primehack^Primehack (Metroid Prime Standalone Emulator)
|
primehack^Primehack (Metroid Prime Standalone Emulator)
|
||||||
psx_ra^Sony Playstation (RetroArch Core)
|
psx_ra^Sony Playstation (RetroArch Core)
|
||||||
retroarch^RetroArch (Multi-emulator Frontend)
|
retroarch^RetroArch (Multi-emulator Frontend)
|
||||||
|
rpcs3^RPCS3 (Sony Playstation 3 Standalone Emulator)
|
||||||
ryujinx^Ryujinx (Nintendo Switch Standalone Emulator)
|
ryujinx^Ryujinx (Nintendo Switch Standalone Emulator)
|
||||||
snes^Nintendo Super Nintendo
|
snes^Nintendo Super Nintendo
|
||||||
yuzu^Yuzu (Nintendo Switch Standalone Emulator, via Ponzu)
|
yuzu^Yuzu (Nintendo Switch Standalone Emulator, via Ponzu)
|
||||||
citra^Citra (Nintendo 3DS Standalone Emulator, via Ponzu)
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source /app/libexec/functions.sh
|
|
||||||
|
|
||||||
# Dialog colors
|
# Dialog colors
|
||||||
purple="#a864fc"
|
purple="#a864fc"
|
||||||
blue="#6fbfff"
|
blue="#6fbfff"
|
||||||
|
|
|
@ -13,7 +13,7 @@ source /app/libexec/framework.sh
|
||||||
source /app/libexec/post_update.sh
|
source /app/libexec/post_update.sh
|
||||||
source /app/libexec/prepare_component.sh
|
source /app/libexec/prepare_component.sh
|
||||||
source /app/libexec/presets.sh
|
source /app/libexec/presets.sh
|
||||||
source /app/libexec/configurator_fuctions.sh
|
source /app/libexec/configurator_functions.sh
|
||||||
|
|
||||||
# Static variables
|
# Static variables
|
||||||
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
|
rd_conf="/var/config/retrodeck/retrodeck.cfg" # RetroDECK config file path
|
||||||
|
|
|
@ -153,7 +153,6 @@ update_rd_conf() {
|
||||||
|
|
||||||
# STAGE 2: To handle presets sections that use duplicate setting names
|
# STAGE 2: To handle presets sections that use duplicate setting names
|
||||||
|
|
||||||
mv -f $rd_conf $rd_conf_backup # Backup config file agiain before update but after Stage 1 expansion
|
|
||||||
generate_single_patch $rd_defaults $rd_conf_backup $rd_update_patch retrodeck # Create a patch file for differences between defaults and current user settings
|
generate_single_patch $rd_defaults $rd_conf_backup $rd_update_patch retrodeck # Create a patch file for differences between defaults and current user settings
|
||||||
sed -i '/change^^version/d' $rd_update_patch # Remove version line from temporary patch file
|
sed -i '/change^^version/d' $rd_update_patch # Remove version line from temporary patch file
|
||||||
deploy_single_patch $rd_defaults $rd_update_patch $rd_conf # Re-apply user settings to defaults file
|
deploy_single_patch $rd_defaults $rd_update_patch $rd_conf # Re-apply user settings to defaults file
|
||||||
|
@ -313,7 +312,7 @@ make_name_pretty() {
|
||||||
if [[ ! -z "$system" ]]; then
|
if [[ ! -z "$system" ]]; then
|
||||||
IFS='^' read -r internal_name pretty_name < <(echo "$system")
|
IFS='^' read -r internal_name pretty_name < <(echo "$system")
|
||||||
else
|
else
|
||||||
pretty_name="$system"
|
pretty_name="$1"
|
||||||
fi
|
fi
|
||||||
echo "$pretty_name"
|
echo "$pretty_name"
|
||||||
}
|
}
|
||||||
|
|
|
@ -591,8 +591,16 @@ configurator_retrodeck_tools_dialog() {
|
||||||
|
|
||||||
"Tool: Remove Empty ROM Folders" )
|
"Tool: Remove Empty ROM Folders" )
|
||||||
log i "Configurator: opening \"$choice\" menu"
|
log i "Configurator: opening \"$choice\" menu"
|
||||||
find_empty_rom_folders
|
(
|
||||||
|
find_empty_rom_folders
|
||||||
|
) |
|
||||||
|
zenity --progress --no-cancel --pulsate --auto-close \
|
||||||
|
--icon-name=net.retrodeck.retrodeck \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title="Finding Empty ROM Folders" \
|
||||||
|
--width=400 --height=200 \
|
||||||
|
--text="Finding empty ROM folders, please be patient.\n\n"
|
||||||
|
|
||||||
choice=$(zenity \
|
choice=$(zenity \
|
||||||
--list --width=1200 --height=720 --title "RetroDECK Configurator - RetroDECK: Remove Empty ROM Folders" \
|
--list --width=1200 --height=720 --title "RetroDECK Configurator - RetroDECK: Remove Empty ROM Folders" \
|
||||||
--checklist --hide-column=3 --ok-label="Remove Selected" --extra-button="Remove All" \
|
--checklist --hide-column=3 --ok-label="Remove Selected" --extra-button="Remove All" \
|
||||||
|
@ -607,16 +615,17 @@ configurator_retrodeck_tools_dialog() {
|
||||||
IFS="," read -ra folders_to_remove <<< "$choice"
|
IFS="," read -ra folders_to_remove <<< "$choice"
|
||||||
for folder in "${folders_to_remove[@]}"; do
|
for folder in "${folders_to_remove[@]}"; do
|
||||||
log i "Removing empty folder $folder"
|
log i "Removing empty folder $folder"
|
||||||
rm -f "$folder"
|
rm -rf "$folder"
|
||||||
done
|
done
|
||||||
|
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
|
||||||
elif [[ ! -z $choice ]]; then # User clicked "Remove All"
|
elif [[ ! -z $choice ]]; then # User clicked "Remove All"
|
||||||
for folder in "${all_empty_folders[@]}"; do
|
for folder in "${all_empty_folders[@]}"; do
|
||||||
log i "Removing empty folder $folder"
|
log i "Removing empty folder $folder"
|
||||||
rm -f "$folder"
|
rm -rf "$folder"
|
||||||
done
|
done
|
||||||
|
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
|
|
||||||
configurator_retrodeck_tools_dialog
|
configurator_retrodeck_tools_dialog
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue