Update Downloader.bash

This commit is contained in:
RandomNinjaAtk 2023-08-10 19:38:31 +00:00 committed by GitHub
parent 30edde4216
commit 33e8416639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,14 +133,21 @@ DownloadRomCountSummary () {
romCount=$(find "$romPath" -type f | wc -l)
platformCount=$(find "/$romPath" -maxdepth 1 -mindepth 1 -type d | wc -l)
log "$romCount ROMS downloaded on $platformCount different platforms!!!"
log "Platform breakdown:"
log "Platform breakdown...."
echo "Platform;Total;Released;Hack/Homebrew/Proto/Unlicensed" > temp
for romfolder in $(find "/$romPath" -maxdepth 1 -mindepth 1 -type d); do
platform="$(basename "$romfolder")"
PlatformSelection
romCount=$(find "$romPath/$platformFolder" -type f | wc -l)
log "$platformName - $romCount"
romSubCount=$(find "$romPath/$platformFolder" -mindepth 2 -type f | wc -l)
romMainCount=$(( $romCount - $romSubCount ))
echo "$platformName;$romCount;$romMainCount;$romSubCount" >> temp
done
data=$(cat temp | column -s";" -t)
echo "$data"
rm temp
}
#### Platforms
PlatformSnes () {
platformName="Super Nintentdo"