2013-07-06 18:25:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
WORKDIR=nsmb.d
|
|
|
|
DOL=${WORKDIR}/sys/main.dol
|
|
|
|
DOWNLOAD_LINK="http://nanolx.org/riivolution/New%20Super%20Mario%20Bros.%20Wii%204%20made%20by%20Orange-Yoshi3.3.zip"
|
|
|
|
RIIVOLUTION_ZIP="New Super Mario Bros. Wii 4 made by Orange-Yoshi3.3.zip"
|
|
|
|
RIIVOLUTION_DIR="nsmb"
|
|
|
|
GAMENAME="New Super Mario Bros. 4"
|
|
|
|
GAME_TYPE=RIIVOLUTION
|
|
|
|
BANNER_LOCATION=${WORKDIR}/files/opening.bnr
|
2016-08-05 15:57:18 +02:00
|
|
|
WBFS_MASK="SMN[PUJ]01"
|
2013-07-06 18:25:11 +02:00
|
|
|
|
|
|
|
show_notes () {
|
|
|
|
|
|
|
|
echo -e \
|
|
|
|
"************************************************
|
|
|
|
${GAMENAME}
|
|
|
|
|
|
|
|
This hack includes 16 new levels in 4 worlds (1, 5, 8 & 9) as well as a
|
|
|
|
new titlescreen with logo (made by max31) and custom music.
|
|
|
|
|
|
|
|
Source: http://www.rvlution.net/forums/viewtopic.php?f=53&t=1501
|
|
|
|
Base Image: New Super Mario Bros. Wii (SMN?01)
|
|
|
|
Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1
|
|
|
|
************************************************"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
detect_game_version () {
|
|
|
|
|
2013-07-07 08:49:52 +02:00
|
|
|
nsmbw_version
|
2013-07-06 18:25:11 +02:00
|
|
|
GAMEID=SMN${REG_LETTER}11
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
place_files () {
|
|
|
|
|
|
|
|
case ${VERSION} in
|
|
|
|
EURv* )
|
2016-08-05 21:42:41 +02:00
|
|
|
cp "${PATCHIMAGE_PATCH_DIR}"/openingTitle_nsmbw4.arc "${WORKDIR}"/files/EU/Layout/openingTitle/openingTitle.arc
|
2013-07-06 18:25:11 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
USAv* )
|
2016-08-05 21:42:41 +02:00
|
|
|
cp "${PATCHIMAGE_PATCH_DIR}"/openingTitle_nsmbw4.arc "${WORKDIR}"/files/US/Layout/openingTitle/openingTitle.arc
|
2013-07-06 18:25:11 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-08-05 21:42:41 +02:00
|
|
|
cp "${RIIVOLUTION_DIR}"/*.brstm "${WORKDIR}"/files/Sound/stream/
|
|
|
|
cp "${RIIVOLUTION_DIR}"/0*.arc "${WORKDIR}"/files/Stage/
|
|
|
|
cp "${RIIVOLUTION_DIR}"/*.brsar "${WORKDIR}"/files/Sound/
|
|
|
|
cp "${RIIVOLUTION_DIR}"/bgA*.arc "${WORKDIR}"/files/Object/
|
|
|
|
cp "${PATCHIMAGE_PATCH_DIR}"/05-04.arc "${WORKDIR}"/files/Stage/
|
2013-07-06 18:25:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
dolpatch () {
|
|
|
|
|
2013-07-07 08:40:20 +02:00
|
|
|
${WIT} dolpatch ${DOL} \
|
|
|
|
"802F148C=53756D6D53756E#7769696D6A3264" \
|
|
|
|
"802F118C=53756D6D53756E#7769696D6A3264" \
|
|
|
|
"802F0F8C=53756D6D53756E#7769696D6A3264" \
|
2013-08-06 23:53:43 +02:00
|
|
|
xml="${PATCHIMAGE_PATCH_DIR}/NSMBW_AP.xml" -q
|
2013-07-06 18:25:11 +02:00
|
|
|
|
|
|
|
}
|