mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
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:
parent
808f6b468b
commit
2efdb08c51
11
tools/3rdparty.md
Normal file
11
tools/3rdparty.md
Normal 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)
|
@ -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
BIN
tools/chdconv/ciso
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user