DarkUmbra SMB Anniversary Edition support

This commit is contained in:
Christopher Roy Bratusek 2014-08-10 21:59:28 +02:00
parent 8aa8d44ecf
commit 496d68aaf7
3 changed files with 67 additions and 1 deletions

View File

@ -103,6 +103,10 @@ case ${GAME} in
source ${PATCHIMAGE_SCRIPT_DIR}/midissupermariowii.sh
;;
NSMB17 | DarkUmbra )
source ${PATCHIMAGE_SCRIPT_DIR}/darkumbrasmb.sh
;;
MKW1 | Wiimmfi )
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh
;;

View File

@ -21,7 +21,7 @@ ask_game () {
echo -e \
"************************************************
patchimage v4.97
patchimage v5.2.0
Enter ID for the Game you want to create:
@ -42,6 +42,7 @@ NSMB13 Awesomer Super Luigi Mini
NSMB14 Super Mario Skyland
NSMB15 RVLution Wii (NewSMB Mod)
NSMB16 Midi's Super Mario Wii (Just A Little Adventure)
NSMB17 DarkUmbra SMB Anniversary Edition
<<<<<< Mario Kart Wii >>>>>>
MKW1 Wiimfi Patcher. Patch Mario Kart to use Wiimm's server

61
script.d/darkumbrasmb.sh Normal file
View File

@ -0,0 +1,61 @@
#!/bin/bash
WORKDIR=nsmb.d
DOL=${WORKDIR}/sys/main.dol
DOWNLOAD_LINK="http://riivolution.nanolx.org/DUSMBAE%20Riivo%20Release%20Pack%20rev1.rar"
RIIVOLUTION_ZIP="DUSMBAE Riivo Release Pack rev1.rar"
RIIVOLUTION_DIR="DUSMBAE Riivo Release Pack"
GAMENAME="DarkUmbra SMB Anniversary Edition"
XML_SOURCE="${RIIVOLUTION_DIR}"
XML_FILE="${RIIVOLUTION_DIR}"/dusmbaePAL.xml
GAME_TYPE=RIIVOLUTION
BANNER_LOCATION=${WORKDIR}/files/opening.bnr
show_notes () {
echo -e \
"************************************************
${GAMENAME}
Source: http://rvlution.net/thread/2232-darkumbra-smb-anniversary-edition-rev1/
Base Image: New Super Mario Bros. Wii (SMN?01)
Supported Versions: EURv1, EURv2
************************************************"
}
check_input_image_special () {
check_input_image_nsmb
}
detect_game_version () {
nsmbw_version
GAMEID=SMN${REG_LETTER}DU
if [[ ${VERSION} != EUR* ]]; then
echo "only PAL games supported by this hack."
exit 81
fi
}
place_files () {
cp -r "${RIIVOLUTION_DIR}"/dusmbae/ ${WORKDIR}/files/
}
dolpatch() {
${WIT} dolpatch ${DOL} \
"802F148C=53756D6D53756E#7769696D6A3264" \
"802F118C=53756D6D53756E#7769696D6A3264" \
"802F0F8C=53756D6D53756E#7769696D6A3264" \
xml="${PATCHIMAGE_PATCH_DIR}/NSMBW_AP.xml" -q
}