This commit is contained in:
Christopher Roy Bratusek 2013-06-20 18:50:02 +02:00
parent 1bad61a4da
commit b8b12b58ac
2 changed files with 4 additions and 10 deletions

View File

@ -43,13 +43,9 @@ ${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1
detect_game_version detect_game_version
place_files place_files
if [[ ${XML} == "TRUE" ]]; then
prepare_xml prepare_xml
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}" ${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}"
dolpatch_extra dolpatch_extra
else
${PPF} a ${DOL} ${PATCH} || exit 1
fi
if [[ ${CUSTOMID} ]]; then if [[ ${CUSTOMID} ]]; then
${WIT} cp -v -B ${WORKDIR} ./${CUSTOMID}.wbfs -vv --disc-id=${CUSTOMID} ${TMD_OPTS} --name "${GAMENAME}" ${WIT} cp -v -B ${WORKDIR} ./${CUSTOMID}.wbfs -vv --disc-id=${CUSTOMID} ${TMD_OPTS} --name "${GAMENAME}"

View File

@ -6,10 +6,8 @@ setup_tools () {
if [[ $(uname -m) == "x86_64" ]]; then if [[ $(uname -m) == "x86_64" ]]; then
WIT=./tools/wit.64 WIT=./tools/wit.64
PPF=./tools/applyppf3.64
else else
WIT=./tools/wit.32 WIT=./tools/wit.32
PPF=./tools/applyppf3.32
fi fi
} }
@ -105,7 +103,7 @@ while [[ $xcount -lt $pcount ]]; do
fi fi
;; ;;
--patch* ) --riivolution* )
RIIVOLUTION=${1/*=} RIIVOLUTION=${1/*=}
if [[ -e "${RIIVOLUTION}" ]]; then if [[ -e "${RIIVOLUTION}" ]]; then
unzip "${RIIVOLUTION}" >/dev/null unzip "${RIIVOLUTION}" >/dev/null