COMPRESSOR: fixed a bug where user selected items were misread

This commit is contained in:
XargonWan 2025-02-17 15:50:00 +09:00
parent 5b4a578cf6
commit 024940a427
2 changed files with 5 additions and 1 deletions

View file

@ -88,6 +88,7 @@
<li>PSX: fixed an issue that was not showing the borders correctly</li>
<li>BIOS CHECKER: fixed wrong folder check</li>
<li>POST_UPDATE: fixed a bug where retrodeck.cfg was not updated at every version</li>
<li>COMPRESSOR: fixed a bug where user selected items were misread</li>
</ul>
<p>Developers, developers, developers:</p>
<ul>

View file

@ -722,6 +722,7 @@ configurator_compress_single_game_dialog() {
) |
rd_zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
--width="800" \
--title "RetroDECK Configurator Utility - Compression in Progress"
configurator_generic_dialog "RetroDECK Configurator - RetroDECK: Compression Tool" "The compression process is complete."
configurator_compression_tool_dialog
@ -783,7 +784,7 @@ configurator_compress_multiple_games_dialog() {
for line in "${all_compressable_games[@]}"; do
IFS="^" read -r game comp <<< "$line"
local short_game="${game#$roms_folder}"
checklist_entries+=( "TRUE" "$short_game" "$game" )
checklist_entries+=( "TRUE" "$short_game" "$line" )
done
local choice
@ -798,6 +799,7 @@ configurator_compress_multiple_games_dialog() {
"${checklist_entries[@]}")
local rc=$?
log d "User choice: $choice"
if [[ $rc == 0 && -n "$choice" ]]; then
IFS="," read -ra games_to_compress <<< "$choice"
elif [[ -n "$choice" ]]; then
@ -845,6 +847,7 @@ configurator_compress_multiple_games_dialog() {
rd_zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --auto-close \
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck/retrodeck.svg" \
--width="800" \
--title "RetroDECK Configurator Utility - Compression in Progress" < "$comp_pipe"
wait "$comp_pid_group"