From 728a7390e78d71fb0f6b5612f198bd07e88e08d7 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 6 Aug 2013 09:04:27 +0200 Subject: [PATCH] bugfix: don't exit with error on check_input_image as we will call check_input_image_special aswell --- script.d/common.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/script.d/common.sh b/script.d/common.sh index 8c132d9..b0ad578 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -3,7 +3,7 @@ TMP_FILES=(Another nsmb.d XmasNewer NewerFiles "Newer*Summer*Sun" \ ZPW_1.1.ips Epic_Super_Bowser_World_v1.00 Riivolution Koopa \ Cannon_Super_Mario_Bros._Wii_v1.1 riivolution "Readme*" "*.txt" "*.rtf" \ -"*.dol" "*.elf" nsmb "Retro Remix") +"*.dol" "*.elf" nsmb "Retro Remix" WinterMoon* WMManual.rtf) PATCHIMAGE_RIIVOLUTION_DIR="." PATCHIMAGE_WBFS_DIR="." @@ -49,6 +49,7 @@ F Epic Super Bowser World G Koopa Country H New Super Mario Bros. 4 I New Super Mario Bros. Wii Retro Remix +J Super Mario: Mushroom Adventure PLUS - Winter Moon 1 The Legend of Zelda: Parallel Worlds " @@ -130,9 +131,6 @@ check_input_image () { IMAGE=BASE.wbfs elif [[ -f BASE.iso ]]; then IMAGE=BASE.iso - else - echo -e "please specify image to use with --iso=" - exit 1 fi fi @@ -289,7 +287,7 @@ while [[ $xcount -lt $pcount ]]; do echo -e "create wbfs images from riivolution patches.\n ***** 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 ---game={NewerSMB;NewerSummerSun;AnotherSMB;HolidaySpecial;ParallelWorlds} +--game={NewerSMB;NewerSummerSun;AnotherSMB;HolidaySpecial;ParallelWorlds...} | specify game you want to create --iso/--rom=/home/test/ | specify which ISO/ROM to use for building --riivolution/--patch= | specify path to Riivolution/Patch files