update for wip support of NewerSummerSun

This commit is contained in:
Christopher Roy Bratusek 2013-06-15 19:58:07 +02:00
parent fabd1a995f
commit 32bf9ce340
3 changed files with 23 additions and 6 deletions

View File

@ -7,6 +7,7 @@
# License: GPL v3 # License: GPL v3
source ./script.d/common.sh source ./script.d/common.sh
setup_tools
optparse "${@}" optparse "${@}"
@ -20,6 +21,10 @@ case ${GAME} in
source ./script.d/newersmb.sh source ./script.d/newersmb.sh
;; ;;
B | NewerSummerSun )
source ./script.d/newersummersun.sh
;;
* ) * )
echo -e "specified Game ${GAME} not recognized" echo -e "specified Game ${GAME} not recognized"
exit 1 exit 1
@ -31,13 +36,19 @@ cleanup_prebuild
check_input_image check_input_image
check_input_image_special check_input_image_special
check_riivolution_patch check_riivolution_patch
prepare_riivolution_dir
${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
if [[ ${XML} ]]; then
XML_FILE="${XML_FILE}"${REG_LETTER}.xml
wit dolpatch ${DOL} xml="${XML_FILE}" "${XML_SOURCE}"
else
${PPF} a ${DOL} ${PATCH} ${PPF} a ${DOL} ${PATCH}
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

@ -30,12 +30,12 @@ cleanup () {
ask_game () { ask_game () {
echo -e echo -e "************************************************
"************************************************
mknewersmb.sh mknewersmb.sh
Enter Letter for the Game you want to create: Enter Letter for the Game you want to create:
A NewerSMB" A NewerSMB
B Newer Summer Sun"
read GAME read GAME
@ -58,7 +58,7 @@ check_input_image () {
check_riivolution_patch () { check_riivolution_patch () {
if [[ ! ${RIIVOLUTION}}; then if [[ ! ${RIIVOLUTION}} ]]; then
if [[ -e ./${RIIVOLUTION_ZIP} ]]; then if [[ -e ./${RIIVOLUTION_ZIP} ]]; then
unzip ./${RIIVOLUTION_ZIP} >/dev/null unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! -d ./${RIIVOLUTION_DIR} ]]; then elif [[ ! -d ./${RIIVOLUTION_DIR} ]]; then
@ -155,7 +155,7 @@ while [[ $xcount -lt $pcount ]]; do
echo -e "create wbfs images from riivolution patches.\n echo -e "create wbfs images from riivolution patches.\n
***** using this script is only allowed, if you own an original copy of the game. ***** using this script is only allowed, if you own an original copy of the game.
***** if you don't, no one can be blamed but you. Shame on you.\n ***** if you don't, no one can be blamed but you. Shame on you.\n
--game={NewerSMB} | specify game you want to create --game={NewerSMB;NewerSummerSun} | specify game you want to create
--iso=/home/test/<Image>.wbfs | specify which ISO to use for building --iso=/home/test/<Image>.wbfs | specify which ISO to use for building
--riivolution=/home/test/<Patch>.zip | specify path to Riivolution files --riivolution=/home/test/<Patch>.zip | specify path to Riivolution files
--version=EURv1,EURv2,USAv1,USAv2,JPNv1 | specify your game version --version=EURv1,EURv2,USAv1,USAv2,JPNv1 | specify your game version

View File

@ -19,6 +19,12 @@ Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1
} }
prepare_riivolution_dir () {
echo
}
check_input_image_special () { check_input_image_special () {
if [[ ! ${IMAGE} ]]; then if [[ ! ${IMAGE} ]]; then