mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2025-01-14 17:59:07 +01:00
add prepare_xml function
This commit is contained in:
parent
815b5bd0e2
commit
1bad61a4da
@ -44,7 +44,8 @@ detect_game_version
|
|||||||
place_files
|
place_files
|
||||||
|
|
||||||
if [[ ${XML} == "TRUE" ]]; then
|
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
|
dolpatch_extra
|
||||||
else
|
else
|
||||||
${PPF} a ${DOL} ${PATCH} || exit 1
|
${PPF} a ${DOL} ${PATCH} || exit 1
|
||||||
|
@ -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"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user