prepare for build without .ppf patches

This commit is contained in:
Christopher Roy Bratusek 2013-06-15 20:19:18 +02:00
parent 3834b24aac
commit 68581f3bb9
3 changed files with 7 additions and 17 deletions

View File

@ -36,7 +36,6 @@ cleanup_prebuild
check_input_image check_input_image
check_input_image_special check_input_image_special
check_riivolution_patch check_riivolution_patch
prepare_riivolution_dir
${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1 ${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1
@ -44,10 +43,9 @@ detect_game_version
place_files place_files
if [[ ${XML} ]]; then if [[ ${XML} ]]; then
XML_FILE="${XML_FILE}"${REG_LETTER}.xml wit dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}" || exit 1
wit dolpatch ${DOL} xml="${XML_FILE}" "${XML_SOURCE}"
else else
${PPF} a ${DOL} ${PATCH} ${PPF} a ${DOL} ${PATCH} || exit 1
fi fi
if [[ ${CUSTOMID} ]]; then if [[ ${CUSTOMID} ]]; then

View File

@ -2,9 +2,12 @@
WORKDIR=./nsmb.d WORKDIR=./nsmb.d
DOL=${WORKDIR}/sys/main.dol DOL=${WORKDIR}/sys/main.dol
RIIVOLUTION_ZIP=NewerSMB.zip RIIVOLUTION_ZIP=NewerSMBW.zip
RIIVOLUTION_DIR=NewerFiles RIIVOLUTION_DIR=NewerFiles
GAMENAME="Newer SMB" GAMENAME="Newer SMB"
XML=FALSE
XML_SOURCE=./"${RIIVOLUTION_DIR}"/NewerSMBW/
XML_FILE=./"${RIIVOLUTION_DIR}"/riivolution/NewerSMBW.xml
show_notes () { show_notes () {
@ -19,12 +22,6 @@ Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1
} }
prepare_riivolution_dir () {
echo
}
check_input_image_special () { check_input_image_special () {
if [[ ! ${IMAGE} ]]; then if [[ ! ${IMAGE} ]]; then

View File

@ -37,12 +37,6 @@ check_input_image_special () {
} }
prepare_riivolution_dir () {
cp ./"${RIIVOLUTION_DIR}"/SumSun/Loader.bin ./"${RIIVOLUTION_DIR}"/riivolution/
}
detect_game_version () { detect_game_version () {
if [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_232911 ]]; then if [[ -f ${WORKDIR}/files/COPYDATE_LAST_2009-10-03_232911 ]]; then
@ -65,6 +59,7 @@ detect_game_version () {
exit 1 exit 1
fi fi
XML_FILE="${XML_FILE}"${REG_LETTER}.xml
GAMEID=SMN${REG_LETTER}02 GAMEID=SMN${REG_LETTER}02
} }