Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Wii support (still being tested) #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions root/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ CreateRomFolders () {
mkdir -p /input/virtualboy
fi

if [ ! -d "/input/wii" ]; then
log "Created: /input/wii"
mkdir -p /input/wii
fi

if [ ! -d "/input/wonderswan" ]; then
log "Created: /input/wonderswan"
mkdir -p /input/wonderswan
Expand Down Expand Up @@ -640,6 +645,70 @@ for folder in $(ls /input); do
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart1" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart1/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/details/WiiRedumpNKitPart2" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/details/WiiRedumpNKitPart2/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart3" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart3/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/details/WiiRedumpNKitPart4" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/details/WiiRedumpNKitPart4/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart5" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart5/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart6" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart6/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart7" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart7/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wii" | read; then
ConsoleId=19
ConsoleName="Wii"
ConsoleDirectory="wii"
ArchiveUrl="$(curl -s "https://archive.org/download/WiiRedumpNKitPart8" | grep ".nkit.gcz" | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//i' -e 's/["'"'"']$//i' | sed 's/\///g' | sort -u | sed 's|^|https://archive.org/download/WiiRedumpNKitPart8/|')"
keepCompressed=true
fi

if echo "$folder" | grep "^wonderswan$" | read; then
ConsoleId=53
ConsoleName="WonderSwan"
Expand Down