Update Downloader.bash

This commit is contained in:
RandomNinjaAtk 2023-08-07 13:26:10 +00:00 committed by GitHub
parent ba183e826a
commit 0487c715bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ PlatformN64 () {
compressRom="false" compressRom="false"
} }
PlatformN64 () { PlatformMegaduck () {
platformName="Mega Duck" platformName="Mega Duck"
platformArchiveContentsUrl="https://archive.org/download/retroachievements_collection_v5/Mega%20Duck/" platformArchiveContentsUrl="https://archive.org/download/retroachievements_collection_v5/Mega%20Duck/"
platformFolder="megaduck" platformFolder="megaduck"
@ -118,6 +118,37 @@ PlatformN64 () {
compressRom="false" compressRom="false"
} }
PlatformPokemini () {
platformName="Pokemon Mini"
platformArchiveContentsUrl="https://archive.org/download/retroachievements_collection_v5/Pokemon%20Mini/"
platformFolder="pokemini"
consoleRomFileExt=".min, .zip, .7z"
raConsoleId="24"
uncompressRom="false"
compressRom="false"
}
PlatformVirtualboy () {
platformName="Virtual Boy"
platformArchiveContentsUrl="https://archive.org/download/retroachievements_collection_v5/Virtual%20Boy/"
platformFolder="virtualboy"
consoleRomFileExt=".vb, .zip, .7z"
raConsoleId="28"
uncompressRom="false"
compressRom="false"
}
PlatformNes () {
platformName="Nintendo Entertainment System"
platformArchiveContentsUrl="https://archive.org/download/retroachievements_collection_NES/NES/"
platformFolder="nes"
consoleRomFileExt=".nes, .unif, .unf, .zip, .7z"
raConsoleId="7"
uncompressRom="false"
compressRom="false"
}
platformsToProcessNumber=0 platformsToProcessNumber=0
IFS=',' read -r -a filters <<< "$platforms" IFS=',' read -r -a filters <<< "$platforms"
for platform in "${filters[@]}" for platform in "${filters[@]}"
@ -137,6 +168,14 @@ do
PlatformMegadrive PlatformMegadrive
elif [ $platform == "n64" ]; then elif [ $platform == "n64" ]; then
PlatformN64 PlatformN64
elif [ $platform == "megaduck" ]; then
PlatformMegaduck
elif [ $platform == "pokemini" ]; then
PlatformPokemini
elif [ $platform == "virtualboy" ]; then
PlatformVirtualboy
elif [ $platform == "nes" ]; then
PlatformNes
else else
log "ERROR :: No Platforms Selected, exiting..." log "ERROR :: No Platforms Selected, exiting..."
exit exit