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
|
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}"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user