add NSMBW_AP.xml/HolidaySpecial-Loader.xml (DMM) + support for Newer: Holiday Special

This commit is contained in:
Christopher Roy Bratusek 2013-06-20 21:22:39 +02:00
parent fb4b20ea5b
commit 7a2f7b815c
8 changed files with 148 additions and 4 deletions

View File

@ -0,0 +1,4 @@
<memory offset="0x802F148C" value="486F6C69646179" original="7769696D6A3264" />
<memory offset="0x802F118C" value="486F6C69646179" original="7769696D6A3264" />
<memory offset="0x802F0FAC" value="486F6C69646179" original="7769696D6A3264" />
<memory offset="0x803482C0" value="000000000000000000000000000000005465616D4441524B77757A486572652100000000000000000000000000000000" />

9
patches/NSMBW_AP.xml Normal file
View File

@ -0,0 +1,9 @@
<memory offset="0x801AF710" value="4E800020" original="9421FFD0" />
<memory offset="0x801D2E53" value="71" original="DA" />
<memory offset="0x801D2E6B" value="71" original="DA" />
<memory offset="0x801AF5D0" value="4E800020" original="9421FFD0" />
<memory offset="0x801D2D13" value="71" original="DA" />
<memory offset="0x801D2D2B" value="71" original="DA" />
<memory offset="0x801AF3E0" value="4E800020" original="9421FFD0" />
<memory offset="0x801D2B23" value="71" original="DA" />
<memory offset="0x801D2B3B" value="71" original="DA" />

View File

@ -17,18 +17,22 @@ fi
case ${GAME} in
A | NewerSMB | NewerSMBW )
a | A | NewerSMB | NewerSMBW )
source script.d/newersmb.sh
;;
B | NewerSummerSun )
b | B | NewerSummerSun )
source script.d/newersummersun.sh
;;
C | ASMBW | AnotherSMBW )
c | C | ASMBW | AnotherSMBW )
source script.d/anothersmb.sh
;;
d | D | HolidaySpecial | "Newer: Holiday Special" )
source script.d/newerholiday.sh
;;
* )
echo -e "specified Game ${GAME} not recognized"
exit 1

View File

@ -143,5 +143,6 @@ prepare_xml () {
dolpatch_extra () {
${WIT} dolpatch ${DOL} xml="patches/AnotherSMB-Loader.xml"
${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml"
}

View File

@ -35,6 +35,7 @@ Enter Letter for the Game you want to create:
A NewerSMB
B Newer Summer Sun
C AnotherSMB
D Newer: Holiday Special
"
read GAME
@ -173,7 +174,8 @@ while [[ $xcount -lt $pcount ]]; do
echo -e "create wbfs images from riivolution patches.\n
***** using this script is only allowed, if you own an original copy of the game.
***** if you don't, no one can be blamed but you. Shame on you.\n
--game={NewerSMB;NewerSummerSun} | specify game you want to create
--game={NewerSMB;NewerSummerSun;AnotherSMB;HolidaySpecial}
| specify game you want to create
--iso=/home/test/<Image>.wbfs | specify which ISO to use for building
--riivolution=/home/test/<Patch>.zip | specify path to Riivolution files
--version=EURv1,EURv2,USAv1,USAv2,JPNv1 | specify your game version

122
script.d/newerholiday.sh Normal file
View File

@ -0,0 +1,122 @@
#!/bin/bash
WORKDIR=nsmb.d
DOL=${WORKDIR}/sys/main.dol
DOWNLOAD_LINK="http://dirbaio.net/newer/Newer_Super_Mario_Bros._Wii_HS.zip"
SOUNDTRACK_LINK="http://dirbaio.net/newer/Newer_Holiday_Special_Soundtrack.zip"
SOUNDTRACK_ZIP="Newer_Holiday_Special_Soundtrack.zip"
RIIVOLUTION_ZIP="Newer_Super_Mario_Bros._Wii_HS.zip"
RIIVOLUTION_DIR="XmasNewer"
GAMENAME="Newer: Holiday Special"
XML_SOURCE="${RIIVOLUTION_DIR}"
XML_FILE="riivolution/Xmas"
show_notes () {
echo -e
"************************************************
Newer: Holiday Special
Source: http://www.newerteam.com/specials.html
Base Image: New Super Mario Bros. Wii (SMN?01)
Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1
************************************************"
}
check_input_image_special () {
if [[ ! ${IMAGE} ]]; then
if test -f SMN?01.wbfs; then
IMAGE=SMN?01.wbfs
elif test -f SMN?01.iso; then
IMAGE=SMN?01.iso
else
echo -e "please specify image to use with --iso=<path>"
exit 1
fi
fi
}
detect_game_version () {
if [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_232911 ]]; then
VERSION=EURv1
REG_LETTER=P
elif [[ -f ${WORKDIR}/files/COPYDATE_LAST_2010-01-05_152101 ]]; then
VERSION=EURv2
REG_LETTER=P
elif [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_232303 ]]; then
VERSION=USAv1
REG_LETTER=E
elif [[ -f ${WORKDIR}/files/COPYDATE_LAST_2010-01-05_143554 ]]; then
VERSION=USAv2
REG_LETTER=E
elif [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_231655 ]]; then
VERSION=JPNv1
REG_LETTER=J
elif [[ ! ${VERSION} ]]; then
echo -e "please specify your games version using --version={EURv1,EURv2,USAv1,USAv2,JPNv1}"
exit 1
fi
XML_FILE="${XML_FILE}"${REG_LETTER}.xml
GAMEID=SMN${REG_LETTER}05
}
place_files () {
NEW_DIRS=( ${WORKDIR}/files/EU/NedEU/Message )
for dir in ${NEW_DIRS[@]}; do
mkdir -p ${dir}
done
case ${VERSION} in
EURv* )
LANGDIRS=( EngEU FraEU GerEU ItaEU SpaEU NedEU )
for dir in ${LANGDIRS[@]}; do
cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/EU/${dir}/Message/
done
cp "${RIIVOLUTION_DIR}"/OpeningP/* ${WORKDIR}/files/EU/Layout/openingTitle/
;;
USAv* )
LANGDIRS=( FraUS EngUS SpaUS )
for dir in ${LANGDIRS[@]}; do
cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/US/${dir}/Message/
done
cp "${RIIVOLUTION_DIR}"/OpeningE/* ${WORKDIR}/files/US/Layout/openingTitle/
;;
JPNv* )
cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/JP/Message/
cp "${RIIVOLUTION_DIR}"/OpeningJ/* ${WORKDIR}/files/JP/Layout/openingTitle/
esac
cp "${RIIVOLUTION_DIR}"/Sound/Stream/* ${WORKDIR}/files/Sound/stream/
cp "${RIIVOLUTION_DIR}"/Layout/preGame/* ${WORKDIR}/files/Layout/preGame/
cp "${RIIVOLUTION_DIR}"/Layout/textures/* ${WORKDIR}/files/Layout/textures/
cp "${RIIVOLUTION_DIR}"/Sound/*.brsar ${WORKDIR}/files/Sound/
cp "${RIIVOLUTION_DIR}"/WorldMap/* ${WORKDIR}/files/WorldMap/
cp "${RIIVOLUTION_DIR}"/Object/* ${WORKDIR}/files/Object/
}
prepare_xml () {
echo -ne
}
dolpatch_extra () {
${WIT} dolpatch ${DOL} xml="patches/HolidaySpecial-Loader.xml"
${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml"
}

View File

@ -151,5 +151,6 @@ prepare_xml () {
dolpatch_extra () {
${WIT} dolpatch ${DOL} xml="patches/NewerSMBW-Loader.xml"
${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml"
}

View File

@ -125,5 +125,6 @@ dolpatch_extra () {
${WIT} dolpatch ${DOL} "802F118C=53756D6D53756E#7769696D6A3264" --verbose
${WIT} dolpatch ${DOL} "802F0F8C=53756D6D53756E#7769696D6A3264" --verbose
${WIT} dolpatch ${DOL} xml="patches/SummerSun-Loader.xml"
${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml"
}