echo -e "Beginning rom sync script\n"
if [ -z "$SKIP_RSYNC" ]; then
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Nintendo Entertainment System (Headered)" .
echo -e "Syncing Amiga\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Commodore - Amiga" .
echo -e "Syncing Atari 2600\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Atari - 2600" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Game Boy" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Game Boy Advance" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Game Boy Color" .
echo -e "Syncing Gamecube\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Nintendo - GameCube - NKit RVZ [zstd-19-128k]" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Nintendo 64 (BigEndian)" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Nintendo DS (Decrypted)" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/No-Intro/Nintendo - Super Nintendo Entertainment System" .
echo -e "Syncing Dreamcast\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sega - Dreamcast" .
echo -e "Syncing Saturn\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sega - Saturn" .
echo -e "Syncing SegaCD\n"
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sega - Mega CD & Sega CD" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sony - PlayStation" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sony - PlayStation 2" .
rsync --include="*(USA)*" --include="*/" --exclude="*" -r --progress "rsync://rsync.myrient.erista.me/files/Redump/Sony - PlayStation Portable" .
ln -s "../Commodore - Amiga"/* .
ln -s "../Atari - 2600"/* .
ln -s "../Nintendo - Game Boy"/* .
echo -e "Game Boy Advance"
ln -s "../Nintendo - Game Boy Advance"/* .
ln -s "../Nintendo - Game Boy Color"/* .
ln -s "../Nintendo - GameCube - NKit RVZ [zstd-19-128k]"/* .
ln -s "../Nintendo - Nintendo Entertainment System (Headered)"/* .
ln -s "../Nintendo - Nintendo 64 (BigEndian)"/* .
ln -s "../Nintendo - Nintendo DS (Decrypted)"/* .
ln -s "../Nintendo - Super Nintendo Entertainment System"/* .
ln -s "../Sega - Dreamcast"/* .
ln -s "../Sega - Saturn"/* .
ln -s "../Sega - Mega CD & Sega CD"/* .
ln -s "../Sony - PlayStation"/* .
ln -s "../Sony - PlayStation 2"/* .
ln -s "../Sony - PlayStation Portable"/* .