diff --git a/patchimage.sh b/patchimage.sh index 1f20b39..206d1b0 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -97,6 +97,10 @@ case ${GAME} in source ${PATCHIMAGE_SCRIPT_DIR}/awesomersuperluigi.sh ;; + n | N | Wiimfi ) + source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh + ;; + 1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" ) source ${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh ;; @@ -167,6 +171,18 @@ case ${GAME_TYPE} in ;; + "MKWIIMM") + show_notes + echo -e "\n*** 1) check_input_image" + check_input_image + echo -e "\n*** 2) check_input_image_special" + check_input_image_special + echo -e "\n*** 3) download_wiimm" + download_wiimm + echo -e "\n*** 4) patch_wiimm" + patch_wiimm + ;; + "IPS" ) show_notes check_input_rom diff --git a/script.d/common.sh b/script.d/common.sh index 333e235..87a1b8a 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -55,6 +55,8 @@ K NSMBW3: The Final Levels L Super Mario Vacation M Awesomer Super Luigi Mini +N Wiimfi Patcher. Patch all RMC??? to use Wiimm's server + 1 The Legend of Zelda: Parallel Worlds " @@ -189,6 +191,31 @@ check_input_image_nsmb () { } +check_input_image_mkwiimm () { + + x=0 + if [[ ! ${IMAGE} ]]; then + if test -f RMC?01.wbfs; then + x=1 + IMAGE=RMC?01.wbfs + elif test -f RMC?01.iso; then + x=2 + IMAGE=RMC?01.iso + elif test -f ${PATCHIMAGE_WBFS_DIR}/RMC?01.iso; then + x=3 + IMAGE=${PATCHIMAGE_WBFS_DIR}/RMC?01.iso + elif test -f ${PATCHIMAGE_WBFS_DIR}/RMC?01.wbfs; then + x=4 + IMAGE=${PATCHIMAGE_WBFS_DIR}/RMC?01.wbfs + else + echo -e "please specify image to use with --iso=" + exit 15 + fi + fi + echo "*** >> status: ${x}" + +} + check_riivolution_patch () { x=0