mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
prepare to support other stuff than just riivolution patching
This commit is contained in:
parent
e917557f2a
commit
936b6eca0d
@ -40,24 +40,28 @@ case ${GAME} in
|
||||
|
||||
esac
|
||||
|
||||
show_notes
|
||||
download_soundtrack
|
||||
cleanup_prebuild
|
||||
check_input_image
|
||||
check_input_image_special
|
||||
check_riivolution_patch
|
||||
case ${GAME_TYPE} in
|
||||
"RIIVOLUTION" )
|
||||
show_notes
|
||||
download_soundtrack
|
||||
cleanup_prebuild
|
||||
check_input_image
|
||||
check_input_image_special
|
||||
check_riivolution_patch
|
||||
|
||||
${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1
|
||||
${WIT} extract "${IMAGE}" ${WORKDIR} --psel=DATA -vv || exit 1
|
||||
|
||||
detect_game_version
|
||||
place_files
|
||||
detect_game_version
|
||||
place_files
|
||||
|
||||
prepare_xml
|
||||
${WIT} dolpatch ${DOL} xml="${XML_FILE}" --source "${XML_SOURCE}"
|
||||
dolpatch_extra
|
||||
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}"
|
||||
else
|
||||
${WIT} cp -v -B ${WORKDIR} ${GAMEID}.wbfs -vv --disc-id=${GAMEID} ${TMD_OPTS} --name "${GAMENAME}"
|
||||
fi
|
||||
if [[ ${CUSTOMID} ]]; then
|
||||
${WIT} cp -v -B ${WORKDIR} ${CUSTOMID}.wbfs -vv --disc-id=${CUSTOMID} ${TMD_OPTS} --name "${GAMENAME}"
|
||||
else
|
||||
${WIT} cp -v -B ${WORKDIR} ${GAMEID}.wbfs -vv --disc-id=${GAMEID} ${TMD_OPTS} --name "${GAMENAME}"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -10,6 +10,7 @@ RIIVOLUTION_DIR="Another"
|
||||
GAMENAME="Another Super Mario Brothers Wii 2.0"
|
||||
XML_SOURCE="${RIIVOLUTION_DIR}"
|
||||
XML_FILE="Riivolution/Another.xml"
|
||||
GAME_TYPE=RIIVOLUTION
|
||||
|
||||
show_notes () {
|
||||
|
||||
|
@ -10,6 +10,7 @@ RIIVOLUTION_DIR="XmasNewer"
|
||||
GAMENAME="Newer: Holiday Special"
|
||||
XML_SOURCE="${RIIVOLUTION_DIR}"
|
||||
XML_FILE="riivolution/Xmas"
|
||||
GAME_TYPE=RIIVOLUTION
|
||||
|
||||
show_notes () {
|
||||
|
||||
|
@ -10,6 +10,7 @@ RIIVOLUTION_DIR="NewerFiles"
|
||||
GAMENAME="Newer SMB"
|
||||
XML_SOURCE="${RIIVOLUTION_DIR}"/NewerSMBW/
|
||||
XML_FILE="${RIIVOLUTION_DIR}"/riivolution/NewerSMBW.xml
|
||||
GAME_TYPE=RIIVOLUTION
|
||||
|
||||
show_notes () {
|
||||
|
||||
|
@ -10,6 +10,7 @@ RIIVOLUTION_DIR="Newer Summer Sun"
|
||||
GAMENAME="Newer Summer Sun"
|
||||
XML_SOURCE="${RIIVOLUTION_DIR}"/SumSun/
|
||||
XML_FILE="${RIIVOLUTION_DIR}"/riivolution/SumSun
|
||||
GAME_TYPE=RIIVOLUTION
|
||||
|
||||
show_notes () {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user