mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
Add check for existing compressed format when building compressable files list
This commit is contained in:
parent
00ee6e1279
commit
7f62bd089b
|
@ -155,19 +155,19 @@ find_compatible_games() {
|
||||||
do
|
do
|
||||||
local compatible_compression_format=$(find_compatible_compression_format "$game")
|
local compatible_compression_format=$(find_compatible_compression_format "$game")
|
||||||
if [[ $compression_format == "chd" ]]; then
|
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")
|
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||||
fi
|
fi
|
||||||
elif [[ $compression_format == "zip" ]]; then
|
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")
|
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||||
fi
|
fi
|
||||||
elif [[ $compression_format == "rvz" ]]; then
|
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")
|
all_compressable_games=("${all_compressable_games[@]}" "$game")
|
||||||
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
compressable_games_list=("${compressable_games_list[@]}" "false" "${game#$roms_folder}" "$game")
|
||||||
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
echo "${game}"^"$compatible_compression_format" >> "$godot_compression_compatible_games"
|
||||||
|
|
Loading…
Reference in a new issue