prepare to support other stuff than just riivolution patching

This commit is contained in:
Christopher Roy Bratusek 2013-06-21 19:29:17 +02:00
parent e917557f2a
commit 936b6eca0d
5 changed files with 25 additions and 17 deletions

View File

@ -40,24 +40,28 @@ case ${GAME} in
esac esac
show_notes case ${GAME_TYPE} in
download_soundtrack "RIIVOLUTION" )
cleanup_prebuild show_notes
check_input_image download_soundtrack
check_input_image_special cleanup_prebuild
check_riivolution_patch 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 detect_game_version
place_files place_files
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
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}"
else else
${WIT} cp -v -B ${WORKDIR} ${GAMEID}.wbfs -vv --disc-id=${GAMEID} ${TMD_OPTS} --name "${GAMENAME}" ${WIT} cp -v -B ${WORKDIR} ${GAMEID}.wbfs -vv --disc-id=${GAMEID} ${TMD_OPTS} --name "${GAMENAME}"
fi fi
;;
esac

View File

@ -10,6 +10,7 @@ RIIVOLUTION_DIR="Another"
GAMENAME="Another Super Mario Brothers Wii 2.0" GAMENAME="Another Super Mario Brothers Wii 2.0"
XML_SOURCE="${RIIVOLUTION_DIR}" XML_SOURCE="${RIIVOLUTION_DIR}"
XML_FILE="Riivolution/Another.xml" XML_FILE="Riivolution/Another.xml"
GAME_TYPE=RIIVOLUTION
show_notes () { show_notes () {

View File

@ -10,6 +10,7 @@ RIIVOLUTION_DIR="XmasNewer"
GAMENAME="Newer: Holiday Special" GAMENAME="Newer: Holiday Special"
XML_SOURCE="${RIIVOLUTION_DIR}" XML_SOURCE="${RIIVOLUTION_DIR}"
XML_FILE="riivolution/Xmas" XML_FILE="riivolution/Xmas"
GAME_TYPE=RIIVOLUTION
show_notes () { show_notes () {

View File

@ -10,6 +10,7 @@ RIIVOLUTION_DIR="NewerFiles"
GAMENAME="Newer SMB" GAMENAME="Newer SMB"
XML_SOURCE="${RIIVOLUTION_DIR}"/NewerSMBW/ XML_SOURCE="${RIIVOLUTION_DIR}"/NewerSMBW/
XML_FILE="${RIIVOLUTION_DIR}"/riivolution/NewerSMBW.xml XML_FILE="${RIIVOLUTION_DIR}"/riivolution/NewerSMBW.xml
GAME_TYPE=RIIVOLUTION
show_notes () { show_notes () {

View File

@ -10,6 +10,7 @@ RIIVOLUTION_DIR="Newer Summer Sun"
GAMENAME="Newer Summer Sun" GAMENAME="Newer Summer Sun"
XML_SOURCE="${RIIVOLUTION_DIR}"/SumSun/ XML_SOURCE="${RIIVOLUTION_DIR}"/SumSun/
XML_FILE="${RIIVOLUTION_DIR}"/riivolution/SumSun XML_FILE="${RIIVOLUTION_DIR}"/riivolution/SumSun
GAME_TYPE=RIIVOLUTION
show_notes () { show_notes () {