2014-05-13 18:29:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DOWNLOAD_LINK="http://download.wiimm.de/wiimmfi/mkw-wiimmfi-patcher.7z"
|
|
|
|
GAME_TYPE="MKWIIMM"
|
|
|
|
GAME_NAME="Mario Kart Wiimmfi"
|
|
|
|
|
|
|
|
show_notes () {
|
|
|
|
|
|
|
|
echo -e \
|
|
|
|
"************************************************
|
|
|
|
${GAMENAME}
|
|
|
|
|
|
|
|
Patches Mario Kart Wii to use Wiimm's custom server
|
|
|
|
|
|
|
|
Source: http://wiiki.wii-homebrew.com/Wiimmfi-Patcher
|
|
|
|
Base Image: Mario Kart Wii (RMC?01)
|
|
|
|
Supported Versions: EUR, JAP, USA
|
|
|
|
************************************************"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
check_input_image_special () {
|
|
|
|
|
|
|
|
if [[ ${IMAGE} ]]; then
|
|
|
|
ask_input_image_wiimmfi ${PWD}
|
|
|
|
GAMEDIR=${PWD}
|
|
|
|
else
|
|
|
|
ask_input_image_wiimmfi ${PATCHIMAGE_WBFS_DIR}
|
|
|
|
GAMEDIR=${PATCHIMAGE_WBFS_DIR}
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -e "type ??????.wbfs (or ??????.iso):\n"
|
|
|
|
read ID
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
download_wiimm () {
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patch_wiimm () {
|
|
|
|
|
|
|
|
if [[ ! -f ${GAMEDIR}/${ID} ]]; then
|
|
|
|
echo "unvalid game passed from user-input. exit"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -v ${GAMEDIR}/${ID} . 2>/dev/null
|
2014-05-16 19:34:12 +02:00
|
|
|
${WIT} cp -o ${ID} --DEST "${PATCHIMAGE_GAME_DIR}"/${ID} --update --psel=data --wiimmfi >/dev/null
|
2014-05-13 18:29:22 +02:00
|
|
|
rm -f ${ID}
|
|
|
|
|
|
|
|
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
|
2014-05-14 21:11:25 +02:00
|
|
|
echo -e "\n*** Z) download_covers"
|
2014-05-13 18:29:22 +02:00
|
|
|
download_covers ${ID/.*}
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|