2014-05-13 18:29:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-05-16 22:12:44 +02:00
|
|
|
DOWNLOAD_LINK="http://download.wiimm.de/wiimmfi/patcher/wiimmfi-patcher-v3.7z"
|
2016-08-06 19:46:07 +02:00
|
|
|
GAME_TYPE="GENERIC"
|
2016-08-05 21:09:04 +02:00
|
|
|
GAMENAME="Mario Kart Wiimmfi"
|
2014-05-13 18:29:22 +02:00
|
|
|
|
|
|
|
show_notes () {
|
|
|
|
|
|
|
|
echo -e \
|
|
|
|
"************************************************
|
2016-08-05 21:09:04 +02:00
|
|
|
${GAMENAME}
|
2014-05-13 18:29:22 +02:00
|
|
|
|
|
|
|
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 () {
|
|
|
|
|
2016-08-05 15:57:18 +02:00
|
|
|
ask_input_image_wiimmfi
|
2014-05-13 18:29:22 +02:00
|
|
|
|
|
|
|
echo -e "type ??????.wbfs (or ??????.iso):\n"
|
2016-08-23 18:19:26 +02:00
|
|
|
read -er ID
|
2014-05-13 18:29:22 +02:00
|
|
|
|
2016-08-05 15:57:18 +02:00
|
|
|
if [[ -f ${PWD}/${ID} ]]; then
|
2016-08-05 21:03:06 +02:00
|
|
|
GAMEDIR="${PWD}"
|
2016-08-05 15:57:18 +02:00
|
|
|
elif [[ -f ${PATCHIMAGE_WBFS_DIR}/${ID} ]]; then
|
2016-08-05 21:03:06 +02:00
|
|
|
GAMEDIR="${PATCHIMAGE_WBFS_DIR}"
|
2016-08-05 15:57:18 +02:00
|
|
|
else echo "invalid user input."
|
|
|
|
exit 75
|
|
|
|
fi
|
2014-05-13 18:29:22 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-08-05 15:57:18 +02:00
|
|
|
pi_action () {
|
2014-05-13 18:29:22 +02:00
|
|
|
|
2016-08-05 21:03:06 +02:00
|
|
|
cp -v "${GAMEDIR}"/"${ID}" . 2>/dev/null
|
|
|
|
"${WIT}" cp -o "${ID}" --DEST "${PATCHIMAGE_GAME_DIR}"/"${ID}" \
|
2014-05-19 21:54:00 +02:00
|
|
|
--update --psel=data --wiimmfi >/dev/null || \
|
|
|
|
( echo "wiimmfi-ing the images failed." && exit 69 )
|
2016-08-05 21:03:06 +02:00
|
|
|
rm -f "${ID}"
|
2014-05-13 18:29:22 +02:00
|
|
|
|
|
|
|
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
|
2014-05-14 21:11:25 +02:00
|
|
|
echo -e "\n*** Z) download_covers"
|
2016-08-05 21:03:06 +02:00
|
|
|
download_covers "${ID/.*}"
|
2014-05-13 18:29:22 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
}
|