basic support for wiimmfi

This commit is contained in:
Christopher Roy Bratusek 2014-05-11 19:26:58 +02:00
parent 7efedef7ee
commit 2a67e60161
2 changed files with 43 additions and 0 deletions

View File

@ -97,6 +97,10 @@ case ${GAME} in
source ${PATCHIMAGE_SCRIPT_DIR}/awesomersuperluigi.sh source ${PATCHIMAGE_SCRIPT_DIR}/awesomersuperluigi.sh
;; ;;
n | N | Wiimfi )
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh
;;
1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" ) 1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" )
source ${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh 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" ) "IPS" )
show_notes show_notes
check_input_rom check_input_rom

View File

@ -55,6 +55,8 @@ K NSMBW3: The Final Levels
L Super Mario Vacation L Super Mario Vacation
M Awesomer Super Luigi Mini M Awesomer Super Luigi Mini
N Wiimfi Patcher. Patch all RMC??? to use Wiimm's server
1 The Legend of Zelda: Parallel Worlds 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=<path>"
exit 15
fi
fi
echo "*** >> status: ${x}"
}
check_riivolution_patch () { check_riivolution_patch () {
x=0 x=0