add CSO compression for PSP (#529)

* add preliminary CSO compression for PSP

* file of licenses of 3rd party binaries

* add nds trim source to 3rdparty

* remove ndstrim license
This commit is contained in:
Griffin 2022-12-23 17:21:36 -08:00 committed by GitHub
parent 808f6b468b
commit 2efdb08c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 1 deletions

11
tools/3rdparty.md Normal file
View File

@ -0,0 +1,11 @@
# 3rd Party Licenses
Collection of licenses for 3rd party binaries included in install.
3dstool - [LICENSE](https://github.com/dnasdw/3dstool/blob/master/LICENSE)
chdman5 - [LICENSE](https://github.com/mamedev/mame/blob/master/COPYING)
ciso - [LICENSE](https://github.com/jamie/ciso/blob/master/license)
xmlstarlet - [LICENSE](https://xmlstar.sourceforge.net/license.php)

View File

@ -30,6 +30,7 @@ if [ $ans -eq 0 ]; then
#whitelist
declare -a chdfolderWhiteList=("dreamcast" "psx" "segacd" "3do" "saturn" "tg-cd" "pcenginecd" "pcfx" "amigacd32" "neogeocd" "megacd" "ps2")
declare -a rvzfolderWhiteList=("gamecube" "wii" "primehacks")
declare -a csofolderWhiteList=("psp")
declare -a searchFolderList
export PATH="${chdPath}/:$PATH"
@ -53,6 +54,14 @@ if [ $ans -eq 0 ]; then
fi
done
fi
for romfolder in "${csofolderWhiteList[@]}"; do
echo "Checking ${romsPath}/${romfolder}/"
mapfile -t files < <(find "${romsPath}/${romfolder}/" -type f -iname "*.iso")
if [ ${#files[@]} -gt 0 ]; then
echo "found in $romfolder"
searchFolderList+=("$romfolder")
fi
done
if ((${#searchFolderList[@]} == 0)); then
echo "No eligible files found."
@ -161,7 +170,15 @@ if [ $ans -eq 0 ]; then
done
#cso
#
for romfolder in "${romfolders[@]}"; do
if [[ " ${csofolderWhiteList[*]} " =~ " ${romfolder} " ]]; then
find "$romsPath/$romfolder" -type f -iname "*.iso" | while read -r f; do
echo "Converting: $f"
ciso 9 "$f" "${f%.*}.cso" >"$HOME/.config/EmuDeck/chdtool.log" && rm -rf "$f"
done
fi
done
else
exit

BIN
tools/chdconv/ciso Executable file

Binary file not shown.