also unzip the riivolution files after download // add support for downloading soundtrack

This commit is contained in:
Christopher Roy Bratusek 2013-06-20 18:15:08 +02:00
parent 715a59cde7
commit 7fe184502f
2 changed files with 22 additions and 1 deletions

View File

@ -41,6 +41,20 @@ read GAME
} }
download_soundtrack () {
if [[ ${SOUNDTRACK} ]]; then
if [[ ${SOUNDTRACK_LINK} ]]; then
wget ${SOUNDTRACK_LINK} -O ./${SOUNDTRACK_ZIP}
exit 0
else
echo -e "no soundtrack for ${GAME} available."
exit 1
fi
fi
}
check_input_image () { check_input_image () {
if [[ ! ${IMAGE} ]]; then if [[ ! ${IMAGE} ]]; then
@ -60,6 +74,7 @@ check_riivolution_patch () {
if [[ ${DOWNLOAD} ]]; then if [[ ${DOWNLOAD} ]]; then
wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP} wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP}
unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! ${RIIVOLUTION}} ]]; then elif [[ ! ${RIIVOLUTION}} ]]; then
if [[ -e ./${RIIVOLUTION_ZIP} ]]; then if [[ -e ./${RIIVOLUTION_ZIP} ]]; then
unzip ./${RIIVOLUTION_ZIP} >/dev/null unzip ./${RIIVOLUTION_ZIP} >/dev/null
@ -114,6 +129,10 @@ while [[ $xcount -lt $pcount ]]; do
DOWNLOAD=TRUE DOWNLOAD=TRUE
;; ;;
--soundtrack )
SOUNDTRACK=TRUE
;;
--version=* ) --version=* )
VERSION=${1/*=} VERSION=${1/*=}
case ${VERSION} in case ${VERSION} in

View File

@ -2,7 +2,9 @@
WORKDIR=./nsmb.d WORKDIR=./nsmb.d
DOL=${WORKDIR}/sys/main.dol DOL=${WORKDIR}/sys/main.dol
DOWNLOAD_LIK="http://newerteam.com/getNewerFile.php" DOWNLOAD_LINK="http://newerteam.com/getNewerFile.php"
SOUNDTRACK_LINK="http://dirbaio.net/newer/NewerSoundtrack.zip"
SOUNDTRACK_ZIP="NewerSoundtrack.zip"
RIIVOLUTION_ZIP=NewerSMBW.zip RIIVOLUTION_ZIP=NewerSMBW.zip
RIIVOLUTION_DIR=NewerFiles RIIVOLUTION_DIR=NewerFiles
GAMENAME="Newer SMB" GAMENAME="Newer SMB"