mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-18 14:55:38 +00:00
Move PSP compression to cso format
- User reports that CHD format breaks PSP games - Suggested replacement 'maxcso' needs to be added to flatpak still
This commit is contained in:
parent
813e6b6e9b
commit
6d5b9cda8b
|
@ -6,13 +6,14 @@ megacd
|
||||||
neogeocd
|
neogeocd
|
||||||
pcenginecd
|
pcenginecd
|
||||||
pcfx
|
pcfx
|
||||||
psp
|
|
||||||
psx
|
psx
|
||||||
ps2
|
ps2
|
||||||
saturn
|
saturn
|
||||||
saturnjp
|
saturnjp
|
||||||
segacd
|
segacd
|
||||||
tg-cd
|
tg-cd
|
||||||
|
[cso]
|
||||||
|
psp
|
||||||
[rvz]
|
[rvz]
|
||||||
gc
|
gc
|
||||||
wii
|
wii
|
||||||
|
|
|
@ -10,15 +10,13 @@ compress_game() {
|
||||||
local dest_file=$(dirname "$(realpath "$file")")"/""$filename_no_extension"
|
local dest_file=$(dirname "$(realpath "$file")")"/""$filename_no_extension"
|
||||||
|
|
||||||
if [[ "$1" == "chd" ]]; then
|
if [[ "$1" == "chd" ]]; then
|
||||||
if [[ "$3" == "psp" ]]; then
|
|
||||||
echo "Put createdvd or maxcso here" # TODO
|
|
||||||
else
|
|
||||||
/app/bin/chdman createcd -i "$source_file" -o "$dest_file".chd
|
/app/bin/chdman createcd -i "$source_file" -o "$dest_file".chd
|
||||||
fi
|
|
||||||
elif [[ "$1" == "zip" ]]; then
|
elif [[ "$1" == "zip" ]]; then
|
||||||
zip -jq9 "$dest_file".zip "$source_file"
|
zip -jq9 "$dest_file".zip "$source_file"
|
||||||
elif [[ "$1" == "rvz" ]]; then
|
elif [[ "$1" == "rvz" ]]; then
|
||||||
dolphin-tool convert -f rvz -b 131072 -c zstd -l 5 -i "$source_file" -o "$dest_file.rvz"
|
dolphin-tool convert -f rvz -b 131072 -c zstd -l 5 -i "$source_file" -o "$dest_file.rvz"
|
||||||
|
elif [[ "$1" == "cso" ]]; then
|
||||||
|
echo "TODO: maxcso command"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +32,8 @@ find_compatible_compression_format() {
|
||||||
echo "zip"
|
echo "zip"
|
||||||
elif echo "$normalized_filename" | grep -qE '\.iso|\.gcm' && [[ $(sed -n '/^\[/{h;d};/\b'"$system"'\b/{g;s/\[\(.*\)\]/\1/p;q};' $compression_targets) == "rvz" ]]; then
|
elif echo "$normalized_filename" | grep -qE '\.iso|\.gcm' && [[ $(sed -n '/^\[/{h;d};/\b'"$system"'\b/{g;s/\[\(.*\)\]/\1/p;q};' $compression_targets) == "rvz" ]]; then
|
||||||
echo "rvz"
|
echo "rvz"
|
||||||
|
elif echo "$normalized_filename" | grep -qE '\.iso' && [[ $(sed -n '/^\[/{h;d};/\b'"$system"'\b/{g;s/\[\(.*\)\]/\1/p;q};' $compression_targets) == "cso" ]]; then
|
||||||
|
echo "cso"
|
||||||
else
|
else
|
||||||
# If no compatible format can be found for the input file
|
# If no compatible format can be found for the input file
|
||||||
echo "none"
|
echo "none"
|
||||||
|
|
Loading…
Reference in a new issue