mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-27 09:41:49 +01:00
also unzip the riivolution files after download // add support for downloading soundtrack
This commit is contained in:
parent
715a59cde7
commit
7fe184502f
@ -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 () {
|
||||
|
||||
if [[ ! ${IMAGE} ]]; then
|
||||
@ -60,6 +74,7 @@ check_riivolution_patch () {
|
||||
|
||||
if [[ ${DOWNLOAD} ]]; then
|
||||
wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP}
|
||||
unzip ./${RIIVOLUTION_ZIP} >/dev/null
|
||||
elif [[ ! ${RIIVOLUTION}} ]]; then
|
||||
if [[ -e ./${RIIVOLUTION_ZIP} ]]; then
|
||||
unzip ./${RIIVOLUTION_ZIP} >/dev/null
|
||||
@ -114,6 +129,10 @@ while [[ $xcount -lt $pcount ]]; do
|
||||
DOWNLOAD=TRUE
|
||||
;;
|
||||
|
||||
--soundtrack )
|
||||
SOUNDTRACK=TRUE
|
||||
;;
|
||||
|
||||
--version=* )
|
||||
VERSION=${1/*=}
|
||||
case ${VERSION} in
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
WORKDIR=./nsmb.d
|
||||
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_DIR=NewerFiles
|
||||
GAMENAME="Newer SMB"
|
||||
|
Loading…
Reference in New Issue
Block a user