mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
cleanups
This commit is contained in:
parent
1bad61a4da
commit
b8b12b58ac
@ -43,13 +43,9 @@ ${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1
|
||||
detect_game_version
|
||||
place_files
|
||||
|
||||
if [[ ${XML} == "TRUE" ]]; then
|
||||
prepare_xml
|
||||
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}"
|
||||
dolpatch_extra
|
||||
else
|
||||
${PPF} a ${DOL} ${PATCH} || exit 1
|
||||
fi
|
||||
prepare_xml
|
||||
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}"
|
||||
dolpatch_extra
|
||||
|
||||
if [[ ${CUSTOMID} ]]; then
|
||||
${WIT} cp -v -B ${WORKDIR} ./${CUSTOMID}.wbfs -vv --disc-id=${CUSTOMID} ${TMD_OPTS} --name "${GAMENAME}"
|
||||
|
@ -6,10 +6,8 @@ setup_tools () {
|
||||
|
||||
if [[ $(uname -m) == "x86_64" ]]; then
|
||||
WIT=./tools/wit.64
|
||||
PPF=./tools/applyppf3.64
|
||||
else
|
||||
WIT=./tools/wit.32
|
||||
PPF=./tools/applyppf3.32
|
||||
fi
|
||||
|
||||
}
|
||||
@ -105,7 +103,7 @@ while [[ $xcount -lt $pcount ]]; do
|
||||
fi
|
||||
;;
|
||||
|
||||
--patch* )
|
||||
--riivolution* )
|
||||
RIIVOLUTION=${1/*=}
|
||||
if [[ -e "${RIIVOLUTION}" ]]; then
|
||||
unzip "${RIIVOLUTION}" >/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user