From 37d6bea04a03c4a74a3dd44b62d4f681fcc26f18 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 6 Aug 2013 22:31:26 +0200 Subject: [PATCH] more simple dolpatch commands for nsmbw3 + wintermoon --- script.d/nsmbw3.sh | 13 ++++--------- script.d/wintermoon.sh | 19 +++++++------------ 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/script.d/nsmbw3.sh b/script.d/nsmbw3.sh index 0e5883e..f46c19d 100644 --- a/script.d/nsmbw3.sh +++ b/script.d/nsmbw3.sh @@ -85,18 +85,13 @@ place_files () { } -dolpatch() { +dolpatch () { -# cp "${XML_FILE}" "${XML_FILE}".new -# sed -e 's/80001800/803482C0/g' -i "${XML_FILE}".new -# XML_FILE="${XML_FILE}".new - - ${WIT} dolpatch ${DOL} \ + ${WIT} dolpatch ${DOL} \ "802F148C=53756D6D53756E#7769696D6A3264" \ "802F118C=53756D6D53756E#7769696D6A3264" \ "802F0F8C=53756D6D53756E#7769696D6A3264" \ -# xml="patches/KoopaCountry-Loader.xml" -q - -# ${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml" -q + xml="patches/NSMBW_AP.xml" -q } + diff --git a/script.d/wintermoon.sh b/script.d/wintermoon.sh index 275fb15..5833b4b 100644 --- a/script.d/wintermoon.sh +++ b/script.d/wintermoon.sh @@ -108,18 +108,13 @@ place_files () { } -dolpatch() { +dolpatch () { - cp "${XML_FILE}" "${XML_FILE}".new - sed -e 's/80001800/803482C0/g' -i "${XML_FILE}".new - XML_FILE="${XML_FILE}".new - - ${WIT} dolpatch ${DOL} xml="${XML_FILE}" -s "${XML_SOURCE}" #\ -# "802F148C=53756D6D53756E#7769696D6A3264" \ -# "802F118C=53756D6D53756E#7769696D6A3264" \ -# "802F0F8C=53756D6D53756E#7769696D6A3264" \ -# xml="patches/KoopaCountry-Loader.xml" -q - - ${WIT} dolpatch ${DOL} xml="patches/NSMBW_AP.xml" -q + ${WIT} dolpatch ${DOL} \ + "802F148C=53756D6D53756E#7769696D6A3264" \ + "802F118C=53756D6D53756E#7769696D6A3264" \ + "802F0F8C=53756D6D53756E#7769696D6A3264" \ + xml="patches/NSMBW_AP.xml" -q } +