add prepare_xml function

This commit is contained in:
Christopher Roy Bratusek 2013-06-20 18:39:22 +02:00
parent 815b5bd0e2
commit 1bad61a4da
2 changed files with 12 additions and 3 deletions

View File

@ -44,7 +44,8 @@ detect_game_version
place_files
if [[ ${XML} == "TRUE" ]]; then
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}" || exit 1
prepare_xml
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}"
dolpatch_extra
else
${PPF} a ${DOL} ${PATCH} || exit 1

View File

@ -146,8 +146,16 @@ place_files () {
}
dolpatch_extra () {
prepare_xml () {
${WIT} dolpatch ${DOL} xml="./patches/NewerSMBW-Loader.xml" || exit 1
cp ${XML_FILE} ${XML_FILE}.new
sed -e 's/80001800/803482C0/g' -i ${XML_FILE}.new
XML_FILE=${XML_FILE}.new
}
dolpatch_extra () {
${WIT} dolpatch ${DOL} xml="./patches/NewerSMBW-Loader.xml"
}