diff --git a/root/scripts/script.sh b/root/scripts/script.sh index 3ad5c32..8e57bd4 100644 --- a/root/scripts/script.sh +++ b/root/scripts/script.sh @@ -126,6 +126,11 @@ CreateRomFolders () { mkdir -p /input/gbc fi + if [ ! -d "/input/gc" ]; then + log "Created: /input/gc" + mkdir -p /input/gc + fi + if [ ! -d "/input/intellivision" ]; then log "Created: /input/intellivision" mkdir -p /input/intellivision @@ -489,6 +494,14 @@ for folder in $(ls /input); do keepCompressed=true fi + if echo "$folder" | grep "^gc$" | read; then + ConsoleId=16 + ConsoleName="GameCube" + ConsoleDirectory="gc" + ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart1" | grep ".nkit.gcz" | grep -io '/dev/null; echo $?)" elif [ "$Type" = "iso" ]; then DownloadVerification="0" + elif [ "$Type" = "nkit" ]; then + DownloadVerification="0" fi if [ "$DownloadVerification" = "0" ]; then log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Download Complete!" @@ -894,6 +912,9 @@ for folder in $(ls /input); do elif [ "$Type" = "iso" ]; then log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Moving to /input/$folder" mv "$DownloadOutput" "/input/$folder" + elif [ "$Type" = "nkit" ]; then + log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Moving to /input/$folder" + mv "$DownloadOutput" "/input/$folder" fi log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Done!" if [ ! -d /config/logs/downloaded ]; then