From 031b74dfb27eaf21f749c31ec633aae06cb6a260 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 17 Aug 2016 21:41:44 +0200 Subject: [PATCH] add batch-building shortcuts --- README.CMD_OPTS | 9 +++++++++ patchimage.sh | 30 ++++++++++++++++++++++++++++++ scripts/common.sh | 19 +++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/README.CMD_OPTS b/README.CMD_OPTS index 021c5b7..e87438a 100644 --- a/README.CMD_OPTS +++ b/README.CMD_OPTS @@ -31,3 +31,12 @@ *** Other game parameters *** --rom=/home/test/MyGame.rom | specify path to ROM to use for building --patch=/home/test/MyModdedGame.ips | specify path to IPS Patch file + +*** Batch-Building shortcuts *** +--game=NSMB_ALL | build all mods of New Super Mario Bros. Wii +--game=PKMN_ALL | build all mods of Pokemon X, Y, Omega Ruby, Alpha Sapphire +--game=PKMN_X | build all mods of Pokemon X +--game=PKMN_Y | build all mods of Pokemon Y +--game=PKMN_OR | build all mods of Pokemon Omega Ruby +--game=PKMN_AS | build all mods of Pokemon Alpha Sapphire + diff --git a/patchimage.sh b/patchimage.sh index fc4b1d9..d460437 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -269,6 +269,36 @@ patchimage_delta () { [[ ! ${GAME} ]] && ask_game +for game in ${GAME[@]}; do + case ${game} in + NSMB_ALL ) + NEW_GAME=(${NEW_GAME[@]} NSMB{1..12} NSMB{13..27}) + ;; + + PKMN_ALL ) + NEW_GAME=(${NEW_GAME[@]} PKMN{1..9}) + ;; + + PKMN_Y ) + NEW_GAME=(${NEW_GAME[@]} PKMN2 PKMN6) + ;; + + PKMN_X ) + NEW_GAME=(${NEW_GAME[@]} PKMN1 PKMN5) + ;; + + PKMN_OR ) + NEW_GAME=(${NEW_GAME[@]} PKMN3 PKMN7) + ;; + + PKMN_AS ) + NEW_GAME=(${NEW_GAME[@]} PKMN4 PKMN8 PKMN9) + ;; + esac + + [[ ${NEW_GAME} ]] && GAME=(${NEW_GAME[@]}) +done + for game in ${GAME[@]}; do case ${game} in diff --git a/scripts/common.sh b/scripts/common.sh index 4e70ae4..1fa800c 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -24,6 +24,9 @@ setup_tools () { } +ALL_NSMB=(NSMB{1..12} NSMB{13..27}) +ALL_PKMN=(PKMN{1..9}) + SUPPORTED_GAMES="************************************************ patchimage v${PATCHIMAGE_VERSION} @@ -60,6 +63,8 @@ NSMB27 MLGSuperLuigi MLG Super Luigi Bros. Wii NSMB99 NSMBWCharacters Customize Characters +NSMB_ALL All Mods of New Super Mario Bros. Wii + <<<<<< Mario Kart Wii >>>>>> MKW1 Wiimmfi Wiimfi Patcher. Patch Mario Kart to use Wiimm's server MKW2 Wiimmpatch Wiimfi Patcher. Patch WFC games to use Wiimm's server (exp) @@ -85,6 +90,12 @@ PKMN7 RisingRuby Pokemon Rising Ruby PKMN8 SinkingSapphire Pokemon Sinking Sapphire PKMN9 DeltaEmeraldAS Pokemon Delta Emerald (Alpha Sapphire) +PKMN_ALL All Mods of Pokemon X, Y, Omega Ruy, Alpha Sapphire +PKMN_X All Mods of Pokemon X +PKMN_Y All Mods of Pokemon Y +PKMN_OR All Mods of Pokemon Omega Ruby +PKMN_AS All Mods of Pokemon Alpha Sapphire + BSECU BravelySecondUncensored Bravely Second Uncensored <<<<<< ROMS >>>>>> @@ -704,6 +715,14 @@ while [[ $xcount -lt $pcount ]]; do *** Other game parameters *** --rom=/home/test/MyGame.rom | specify path to ROM to use for building --patch=/home/test/MyModdedGame.ips | specify path to IPS Patch file + +*** Batch-Building shortcuts *** +--game=NSMB_ALL | build all mods of New Super Mario Bros. Wii +--game=PKMN_ALL | build all mods of Pokemon X, Y, Omega Ruby, Alpha Sapphire +--game=PKMN_X | build all mods of Pokemon X +--game=PKMN_Y | build all mods of Pokemon Y +--game=PKMN_OR | build all mods of Pokemon Omega Ruby +--game=PKMN_AS | build all mods of Pokemon Alpha Sapphire " exit 0 ;;