mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
Merge pull request #821 from icenine451/cooker-0.8.2b-icenine451
Cooker 0.8.2b icenine451
This commit is contained in:
commit
80a315ebf5
|
@ -155,19 +155,19 @@ find_compatible_games() {
|
|||
do
|
||||
local compatible_compression_format=$(find_compatible_compression_format "$game")
|
||||
if [[ $compression_format == "chd" ]]; then
|
||||
if [[ $compatible_compression_format == "chd" ]]; then
|
||||
if [[ $compatible_compression_format == "chd" && ! -f "$(echo ${game%.*}.chd)" ]]; then
|
||||
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||
fi
|
||||
elif [[ $compression_format == "zip" ]]; then
|
||||
if [[ $compatible_compression_format == "zip" ]]; then
|
||||
if [[ $compatible_compression_format == "zip" && ! -f "$(echo ${game%.*}.zip)" ]]; then
|
||||
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||
fi
|
||||
elif [[ $compression_format == "rvz" ]]; then
|
||||
if [[ $compatible_compression_format == "rvz" ]]; then
|
||||
if [[ $compatible_compression_format == "rvz" && ! -f "$(echo ${game%.*}.rvz)" ]]; then
|
||||
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||
|
|
|
@ -855,6 +855,7 @@ configurator_compress_multiple_games_dialog() {
|
|||
|
||||
find_compatible_games "$1"
|
||||
|
||||
if [[ ! $(echo "${#all_compressable_games[@]}") == "0" ]]; then
|
||||
if [[ ! "$target_selection" == "everything" ]]; then # If the user chose to not auto-compress everything
|
||||
choice=$(zenity \
|
||||
--list --width=1200 --height=720 --title "RetroDECK Configurator - RetroDECK: Compression Tool" \
|
||||
|
@ -878,6 +879,11 @@ configurator_compress_multiple_games_dialog() {
|
|||
fi
|
||||
else # The user chose to auto-compress everything
|
||||
games_to_compress=("${all_compressable_games[@]}")
|
||||
local total_games_to_compress=${#all_compressable_games[@]}
|
||||
local games_left_to_compress=$total_games_to_compress
|
||||
fi
|
||||
else
|
||||
configurator_generic_dialog "RetroDECK Configurator - RetroDECK: Compression Tool" "No compressable files were found."
|
||||
fi
|
||||
|
||||
if [[ ! $(echo "${#games_to_compress[@]}") == "0" ]]; then
|
||||
|
|
Loading…
Reference in a new issue