2013-09-26 19:58:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
WORKDIR=nsmb.d
|
|
|
|
DOL=${WORKDIR}/sys/main.dol
|
|
|
|
DOWNLOAD_LINK="https://dl.dropboxusercontent.com/u/90984778/Super_Mario_Vacation_v1.00.zip"
|
|
|
|
RIIVOLUTION_ZIP="Super_Mario_Vacation_v1.00.zip"
|
|
|
|
RIIVOLUTION_DIR="Super_Mario_Vacation_v1.00"
|
|
|
|
GAMENAME="Super Mario Vacation"
|
|
|
|
XML_SOURCE="${RIIVOLUTION_DIR}"/Vacation
|
|
|
|
XML_FILE="${RIIVOLUTION_DIR}"/riivolution/Vacation
|
|
|
|
GAME_TYPE=RIIVOLUTION
|
|
|
|
BANNER_LOCATION=${WORKDIR}/files/opening.bnr
|
2016-08-05 15:57:18 +02:00
|
|
|
WBFS_MASK="SMN[PUJ]01"
|
2013-09-26 19:58:37 +02:00
|
|
|
|
|
|
|
show_notes () {
|
|
|
|
|
|
|
|
echo -e \
|
|
|
|
"************************************************
|
|
|
|
${GAMENAME}
|
|
|
|
|
|
|
|
NSMBW Hack featuring 7 new and one old level.
|
|
|
|
|
|
|
|
Source: http://rvlution.net/forums/viewtopic.php?f=53&t=1839
|
|
|
|
Base Image: New Super Mario Bros. Wii (SMN?01)
|
|
|
|
Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1
|
|
|
|
************************************************"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
detect_game_version () {
|
|
|
|
|
|
|
|
nsmbw_version
|
|
|
|
|
|
|
|
XML_FILE="${XML_FILE}"${REG_LETTER}.xml
|
|
|
|
GAMEID=SMV${REG_LETTER}01
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
place_files () {
|
|
|
|
|
2016-08-05 21:42:41 +02:00
|
|
|
NEW_DIRS=( "${WORKDIR}"/files/EU/NedEU/Message )
|
|
|
|
for dir in "${NEW_DIRS[@]}"; do
|
|
|
|
mkdir -p "${dir}"
|
2013-09-26 19:58:37 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
case ${VERSION} in
|
|
|
|
EUR* )
|
|
|
|
LANGDIRS=( EngEU FraEU GerEU ItaEU SpaEU NedEU )
|
2016-08-05 21:42:41 +02:00
|
|
|
for dir in "${LANGDIRS[@]}"; do
|
|
|
|
cp -r "${RIIVOLUTION_DIR}"/Vacation/Message "${WORKDIR}"/files/EU/"${dir}"/
|
2013-09-26 19:58:37 +02:00
|
|
|
done
|
2016-08-05 21:42:41 +02:00
|
|
|
cp "${RIIVOLUTION_DIR}"/Vacation/OpeningP/* "${WORKDIR}"/files/EU/Layout/openingTitle/openingTitle.arc
|
2013-09-26 19:58:37 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
USAv* )
|
|
|
|
LANGDIRS=( FraUS EngUS SpaUS )
|
2016-08-05 21:42:41 +02:00
|
|
|
for dir in "${LANGDIRS[@]}"; do
|
|
|
|
cp -r "${RIIVOLUTION_DIR}"/Vacation/Message "${WORKDIR}"/files/US/"${dir}"/
|
2013-09-26 19:58:37 +02:00
|
|
|
done
|
2016-08-05 21:42:41 +02:00
|
|
|
cp "${RIIVOLUTION_DIR}"/Vacation/OpeningE/* "${WORKDIR}"/files/US/Layout/openingTitle/openingTitle.arc
|
2013-09-26 19:58:37 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
JPNv1 )
|
2016-08-05 21:42:41 +02:00
|
|
|
cp -r "${RIIVOLUTION_DIR}"/Vacation/Message "${WORKDIR}"/files/JP/
|
|
|
|
cp "${RIIVOLUTION_DIR}"/Vacation/OpeningJ/* "${WORKDIR}"/files/JP/Layout/openingTitle/openingTitle.arc
|
2013-09-26 19:58:37 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-08-05 21:42:41 +02:00
|
|
|
cp -r "${RIIVOLUTION_DIR}"/Vacation/{Env,Layout,Object,Sound,Stage,WorldMap} "${WORKDIR}"/files/
|
2013-09-26 19:58:37 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dolpatch () {
|
|
|
|
|
|
|
|
${WIT} dolpatch ${DOL} \
|
|
|
|
"802F148C=53756D6D53756E#7769696D6A3264" \
|
|
|
|
"802F118C=53756D6D53756E#7769696D6A3264" \
|
|
|
|
"802F0F8C=53756D6D53756E#7769696D6A3264" \
|
|
|
|
xml="${PATCHIMAGE_PATCH_DIR}/NSMBW_AP.xml" -q
|
|
|
|
|
|
|
|
}
|
|
|
|
|