Merge pull request #822 from icenine451/cooker-0.8.2b-icenine451

Cooker 0.8.2b icenine451
This commit is contained in:
icenine451 2024-06-27 10:40:53 -04:00 committed by GitHub
commit aa7ac1058f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ compress_game() {
fi fi
if [[ $post_compression_cleanup == "true" ]]; then # Remove file(s) if requested if [[ $post_compression_cleanup == "true" ]]; then # Remove file(s) if requested
if [[ -f "${file%.*}.$compatible_compression_format" ]]; then if [[ -f "${file%.*}.$1" ]]; then
log i "Performing post-compression file cleanup" log i "Performing post-compression file cleanup"
if [[ "$file" == *".cue" ]]; then if [[ "$file" == *".cue" ]]; then
local cue_bin_files=$(grep -o -P "(?<=FILE \").*(?=\".*$)" "$file") local cue_bin_files=$(grep -o -P "(?<=FILE \").*(?=\".*$)" "$file")
@ -38,15 +38,14 @@ compress_game() {
log i "Removing file $file_path/$line" log i "Removing file $file_path/$line"
rm -f "$file_path/$line" rm -f "$file_path/$line"
done < <(printf '%s\n' "$cue_bin_files") done < <(printf '%s\n' "$cue_bin_files")
log i "Removing file $(realpath $file)" log i "Removing file $(realpath "$file")"
rm -f $(realpath "$file") rm -f $(realpath "$file")
else else
log i "Removing file $(realpath $file)" log i "Removing file $(realpath "$file")"
rm -f "$(realpath "$file")" rm -f "$(realpath "$file")"
fi fi
else else
log i "Compressed file ${file%.*}.$compatible_compression_format not found, skipping original file deletion" log i "Compressed file ${file%.*}.$1 not found, skipping original file deletion"
configurator_generic_dialog "RetroDECK Configurator - RetroDECK: Compression Tool" "A compressed version of the file was not found, skipping deletion."
fi fi
fi fi
} }

View file

@ -587,6 +587,7 @@ 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"
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "Before removing any identified empty ROM folders,\nplease make sure your ROM collection is backed up, just in case!"
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "Searching for empty rom folders, please be patient..." configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "Searching for empty rom folders, please be patient..."
find_empty_rom_folders find_empty_rom_folders