diff --git a/patchimage.sh b/patchimage.sh index e3d740b..bd5c031 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -36,7 +36,6 @@ cleanup_prebuild check_input_image check_input_image_special check_riivolution_patch -prepare_riivolution_dir ${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1 @@ -44,10 +43,9 @@ detect_game_version place_files if [[ ${XML} ]]; then - XML_FILE="${XML_FILE}"${REG_LETTER}.xml - wit dolpatch ${DOL} xml="${XML_FILE}" "${XML_SOURCE}" + wit dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}" || exit 1 else - ${PPF} a ${DOL} ${PATCH} + ${PPF} a ${DOL} ${PATCH} || exit 1 fi if [[ ${CUSTOMID} ]]; then diff --git a/script.d/newersmb.sh b/script.d/newersmb.sh index e08b855..4f7bec7 100644 --- a/script.d/newersmb.sh +++ b/script.d/newersmb.sh @@ -2,9 +2,12 @@ WORKDIR=./nsmb.d DOL=${WORKDIR}/sys/main.dol -RIIVOLUTION_ZIP=NewerSMB.zip +RIIVOLUTION_ZIP=NewerSMBW.zip RIIVOLUTION_DIR=NewerFiles GAMENAME="Newer SMB" +XML=FALSE +XML_SOURCE=./"${RIIVOLUTION_DIR}"/NewerSMBW/ +XML_FILE=./"${RIIVOLUTION_DIR}"/riivolution/NewerSMBW.xml show_notes () { @@ -19,12 +22,6 @@ Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1 } -prepare_riivolution_dir () { - - echo - -} - check_input_image_special () { if [[ ! ${IMAGE} ]]; then diff --git a/script.d/newersummersun.sh b/script.d/newersummersun.sh index 4f8fc1a..534eb88 100644 --- a/script.d/newersummersun.sh +++ b/script.d/newersummersun.sh @@ -37,12 +37,6 @@ check_input_image_special () { } -prepare_riivolution_dir () { - - cp ./"${RIIVOLUTION_DIR}"/SumSun/Loader.bin ./"${RIIVOLUTION_DIR}"/riivolution/ - -} - detect_game_version () { if [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_232911 ]]; then @@ -65,6 +59,7 @@ detect_game_version () { exit 1 fi + XML_FILE="${XML_FILE}"${REG_LETTER}.xml GAMEID=SMN${REG_LETTER}02 }