diff --git a/patchimage.sh b/patchimage.sh index 99a9d25..d758fd9 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -25,6 +25,10 @@ case ${GAME} in source script.d/newersummersun.sh ;; + C | ASMBW | AnotherSMBW ) + source script.d/anothersmb.sh + ;; + * ) echo -e "specified Game ${GAME} not recognized" exit 1 diff --git a/script.d/common.sh b/script.d/common.sh index 3cddd56..71100a8 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -33,7 +33,9 @@ patchimage.sh Enter Letter for the Game you want to create: A NewerSMB -B Newer Summer Sun" +B Newer Summer Sun +C AnotherSMB +" read GAME @@ -43,7 +45,7 @@ download_soundtrack () { if [[ ${SOUNDTRACK} ]]; then if [[ ${SOUNDTRACK_LINK} ]]; then - wget ${SOUNDTRACK_LINK} -O ./${SOUNDTRACK_ZIP} + wget "${SOUNDTRACK_LINK}" -O ${SOUNDTRACK_ZIP} exit 0 else echo -e "no soundtrack for ${GAME} available." diff --git a/script.d/newersmb.sh b/script.d/newersmb.sh index e0fabdc..99f8cf4 100644 --- a/script.d/newersmb.sh +++ b/script.d/newersmb.sh @@ -1,6 +1,6 @@ #!/bin/bash -WORKDIR=./nsmb.d +WORKDIR=nsmb.d DOL=${WORKDIR}/sys/main.dol DOWNLOAD_LINK="http://newerteam.com/getNewerFile.php" SOUNDTRACK_LINK="http://dirbaio.net/newer/NewerSoundtrack.zip" diff --git a/script.d/newersummersun.sh b/script.d/newersummersun.sh index eac060e..921bfc1 100644 --- a/script.d/newersummersun.sh +++ b/script.d/newersummersun.sh @@ -1,6 +1,6 @@ #!/bin/bash -WORKDIR=./nsmb.d +WORKDIR=nsmb.d DOL=${WORKDIR}/sys/main.dol DOWNLOAD_LINK="http://dirbaio.net/newer/Newer_Summer_Sun.zip" SOUNDTRACK_LINK="http://dirbaio.net/newer/Newer_Summer_Sun_Soundtrack.zip"