2013-06-13 20:12:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2013-06-15 19:25:15 +02:00
|
|
|
# create wbfs image from riivolution patch
|
2013-06-13 20:12:19 +02:00
|
|
|
#
|
2014-05-16 20:39:01 +02:00
|
|
|
# Christopher Roy Bratusek <nano@jpberlin.de>
|
2013-06-13 20:12:19 +02:00
|
|
|
#
|
|
|
|
# License: GPL v3
|
|
|
|
|
2016-07-03 20:07:55 +02:00
|
|
|
basedir=$(readlink -m "${BASH_SOURCE[0]}")
|
2016-08-05 20:52:01 +02:00
|
|
|
basedir=$(dirname "${basedir}")
|
2016-07-03 20:07:55 +02:00
|
|
|
|
2016-08-05 20:52:01 +02:00
|
|
|
export PATCHIMAGE_DIR=${basedir}
|
2016-08-02 21:40:04 +02:00
|
|
|
|
2016-08-06 10:36:54 +02:00
|
|
|
if [[ -d ${basedir}/scripts ]]; then
|
|
|
|
export PATCHIMAGE_SCRIPT_DIR=${basedir}/scripts
|
2016-08-05 20:52:01 +02:00
|
|
|
export PATCHIMAGE_PATCH_DIR=${basedir}/patches
|
|
|
|
export PATCHIMAGE_DATA_DIR=${basedir}/data
|
|
|
|
export PATCHIMAGE_TOOLS_DIR=${basedir}/tools
|
|
|
|
export PATCHIMAGE_OVERRIDE_DIR=${basedir}/override
|
|
|
|
export PATCHIMAGE_DATABASE_DIR=${basedir}/database
|
2013-08-06 23:53:43 +02:00
|
|
|
else
|
2016-08-06 10:36:54 +02:00
|
|
|
export PATCHIMAGE_SCRIPT_DIR=/usr/share/patchimage/scripts
|
2016-08-05 20:52:01 +02:00
|
|
|
export PATCHIMAGE_PATCH_DIR=/usr/share/patchimage/patches
|
|
|
|
export PATCHIMAGE_DATA_DIR=/usr/share/patchimage/data
|
2016-08-06 11:03:39 +02:00
|
|
|
if [[ $(uname -m) == "x86_64" ]]; then
|
|
|
|
export PATCHIMAGE_TOOLS_DIR=/usr/lib/x86_64-linux-gnu/patchimage/tools
|
|
|
|
export PATCHIMAGE_OVERRIDE_DIR=/usr/lib/x86_64-linux-gnu/patchimage/override
|
|
|
|
else
|
|
|
|
export PATCHIMAGE_TOOLS_DIR=/usr/lib/i386-linux-gnu/patchimage/tools
|
|
|
|
export PATCHIMAGE_OVERRIDE_DIR=/usr/lib/i386-linux-gnu/patchimage/override
|
|
|
|
fi
|
2016-08-05 20:52:01 +02:00
|
|
|
export PATCHIMAGE_DATABASE_DIR=/usr/share/patchimage/database
|
2013-08-06 23:53:43 +02:00
|
|
|
fi
|
|
|
|
|
2016-08-05 20:52:01 +02:00
|
|
|
export PATCHIMAGE_RIIVOLUTION_DIR="${basedir}"
|
|
|
|
export PATCHIMAGE_WBFS_DIR="${basedir}"
|
|
|
|
export PATCHIMAGE_AUDIO_DIR="${basedir}"
|
|
|
|
export PATCHIMAGE_GAME_DIR="${basedir}"
|
|
|
|
export PATCHIMAGE_COVER_DIR="${basedir}"
|
2013-10-12 10:37:29 +02:00
|
|
|
|
2016-08-05 20:52:01 +02:00
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/common.sh"
|
2016-07-01 20:11:25 +02:00
|
|
|
optparse "${@}"
|
|
|
|
|
2013-10-12 10:37:29 +02:00
|
|
|
check_directories
|
2013-06-15 19:58:07 +02:00
|
|
|
setup_tools
|
2013-06-13 20:12:19 +02:00
|
|
|
|
2016-08-07 11:23:22 +02:00
|
|
|
patchimage_riivolution () {
|
|
|
|
|
|
|
|
show_notes
|
|
|
|
rm -rf "${WORKDIR}"
|
|
|
|
if [[ ${PATCHIMAGE_SOUNDTRACK_DOWNLOAD} == TRUE ]]; then
|
|
|
|
echo -e "\n*** A) download_soundtrack"
|
|
|
|
download_soundtrack
|
|
|
|
if [[ ${ONLY_SOUNDTRACK} == TRUE ]]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo -e "\n*** 1) check_input_image"
|
|
|
|
check_input_image
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 2) check_riivolution_patch"
|
2016-08-07 11:23:22 +02:00
|
|
|
check_riivolution_patch
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 3) extract game"
|
2016-08-07 11:23:22 +02:00
|
|
|
${WIT} extract "${IMAGE}" "${WORKDIR}" --psel=DATA -q || exit 51
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 4) detect_game_version"
|
2016-08-07 11:23:22 +02:00
|
|
|
detect_game_version
|
|
|
|
rm -f "${GAMEID}".wbfs "${CUSTOMID}".wbfs
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 5) place_files"
|
2016-08-07 11:23:22 +02:00
|
|
|
place_files || exit 45
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 6) download_banner"
|
2016-08-07 11:23:22 +02:00
|
|
|
download_banner
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 7) apply_banner"
|
2016-08-07 11:23:22 +02:00
|
|
|
apply_banner
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 8) dolpatch"
|
2016-08-07 11:23:22 +02:00
|
|
|
dolpatch
|
|
|
|
|
|
|
|
if [[ ${CUSTOMID} ]]; then
|
|
|
|
GAMEID="${CUSTOMID}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ${PATCHIMAGE_SHARE_SAVE} == "TRUE" ]]; then
|
|
|
|
TMD_OPTS=""
|
|
|
|
else
|
|
|
|
TMD_OPTS="--tt-id=K"
|
|
|
|
fi
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 9) rebuild and store game"
|
2016-08-07 11:23:22 +02:00
|
|
|
"${WIT}" cp -o -q --disc-id="${GAMEID}" "${TMD_OPTS}" --name "${GAMENAME}" \
|
|
|
|
-B "${WORKDIR}" "${PATCHIMAGE_GAME_DIR}"/"${GAMEID}".wbfs || exit 51
|
|
|
|
|
2016-08-07 20:43:12 +02:00
|
|
|
echo "*** 10) remove workdir"
|
2016-08-07 11:23:22 +02:00
|
|
|
rm -rf "${WORKDIR}"
|
|
|
|
|
|
|
|
echo -e "\n >>> ${GAMENAME} saved as: ${PATCHIMAGE_GAME_DIR}/${GAMEID}.wbfs\n"
|
|
|
|
|
|
|
|
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
|
|
|
|
echo -e "*** Z) download_covers"
|
|
|
|
download_covers "${GAMEID}"
|
|
|
|
echo -e "\nCovers downloaded to ${PATCHIMAGE_COVER_DIR}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patchimage_mkwiimm () {
|
|
|
|
|
|
|
|
show_notes
|
|
|
|
echo -e "\n*** 1) check_input_image"
|
|
|
|
check_input_image
|
|
|
|
echo -e "\n*** 2) download_wiimm"
|
|
|
|
download_wiimm
|
|
|
|
echo -e "\n*** 3) patch_wiimm"
|
|
|
|
patch_wiimm
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patchimage_generic () {
|
|
|
|
|
|
|
|
show_notes
|
|
|
|
echo -e "\n*** 1) check_input_image"
|
|
|
|
check_input_image_special
|
|
|
|
echo -e "\n*** 2) pi_action"
|
|
|
|
pi_action
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patchimage_ips () {
|
|
|
|
show_notes
|
|
|
|
check_input_rom
|
2016-08-13 19:04:34 +02:00
|
|
|
check_riivolution_patch --nofail
|
2016-08-07 11:23:22 +02:00
|
|
|
|
|
|
|
if [[ -f ${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${IPS}" a "${PATCH}" "${GAMENAME}.${ext}" || exit 51
|
2016-08-13 19:04:34 +02:00
|
|
|
elif [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${IPS}" a "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${PATCH}" \
|
|
|
|
"${GAMENAME}.${ext}" || exit 51
|
2016-08-07 11:23:22 +02:00
|
|
|
else
|
|
|
|
echo -e "error: patch (${PATCH}) could not be found"
|
|
|
|
exit 21
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-08-09 22:54:12 +02:00
|
|
|
patchimage_bps () {
|
|
|
|
show_notes
|
|
|
|
check_input_rom
|
2016-08-13 19:04:34 +02:00
|
|
|
check_riivolution_patch --nofail
|
2016-08-09 22:54:12 +02:00
|
|
|
|
|
|
|
if [[ -f ${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${BPS}" -decode -t "${GAMENAME}.${ext}" "${PATCH}" || exit 51
|
2016-08-13 19:04:34 +02:00
|
|
|
elif [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${BPS}" -decode -t "${GAMENAME}.${ext}" \
|
|
|
|
"${PATCHIMAGE_RIIVOLUTION_DIR}"/"${PATCH}" || exit 51
|
2016-08-09 22:54:12 +02:00
|
|
|
else
|
|
|
|
echo -e "error: patch (${PATCH}) could not be found"
|
|
|
|
exit 21
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-08-07 11:26:15 +02:00
|
|
|
patchimage_ppf () {
|
|
|
|
show_notes
|
|
|
|
check_input_rom
|
2016-08-13 19:04:34 +02:00
|
|
|
check_riivolution_patch --nofail
|
2016-08-07 11:26:15 +02:00
|
|
|
|
|
|
|
if [[ -f ${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${PPF}" a "${PATCH}" "${GAMENAME}.${ext}" || exit 51
|
2016-08-13 19:04:34 +02:00
|
|
|
elif [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${PATCH} ]]; then
|
|
|
|
ext="${ROM/*.}"
|
|
|
|
cp "${ROM}" "${GAMENAME}.${ext}"
|
|
|
|
"${PPF}" a "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${PATCH}" \
|
|
|
|
"${GAMENAME}.${ext}" || exit 51
|
2016-08-07 11:26:15 +02:00
|
|
|
else
|
|
|
|
echo -e "error: patch (${PATCH}) could not be found"
|
|
|
|
exit 21
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-08-07 11:23:22 +02:00
|
|
|
patchimage_hans () {
|
|
|
|
|
|
|
|
show_notes
|
|
|
|
echo -e "\n*** 1) check_input_rom"
|
|
|
|
if [[ ${HANS_MULTI_SOURCE} ]]; then
|
|
|
|
check_input_rom_special
|
|
|
|
else check_input_rom
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf romfs/ romfs.bin "${ROMFS}"
|
|
|
|
|
|
|
|
echo "*** 2) check_hans_files"
|
|
|
|
check_hans_files
|
|
|
|
|
|
|
|
echo "*** 3) unpack_3dsrom"
|
|
|
|
unpack_3dsrom "${ROM}" || exit 51
|
|
|
|
|
2016-08-13 19:04:34 +02:00
|
|
|
if [[ ${HANS_DELTA} ]]; then
|
|
|
|
echo "*** 4) apply_delta"
|
|
|
|
|
|
|
|
if [[ -f ${PATCH} ]]; then
|
|
|
|
"${XD3}" -d -f -s romfs.bin \
|
|
|
|
"${PATCH}" "${ROMFS}" || exit 51
|
|
|
|
elif [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${PATCH} ]]; then
|
|
|
|
"${XD3}" -d -f -s romfs.bin \
|
|
|
|
"${PATCHIMAGE_RIIVOLUTION_DIR}"/"${PATCH}" \
|
|
|
|
"${ROMFS}" || exit 51
|
|
|
|
else
|
|
|
|
echo -e "error: patch (${PATCH}) could not be found"
|
|
|
|
exit 21
|
|
|
|
fi
|
2016-08-07 11:23:22 +02:00
|
|
|
|
2016-08-13 19:04:34 +02:00
|
|
|
echo "*** 5) storing game"
|
|
|
|
else
|
|
|
|
echo "*** 4) unpack_3dsromfs"
|
|
|
|
unpack_3dsromfs romfs.bin || exit 51
|
2016-08-07 11:23:22 +02:00
|
|
|
|
2016-08-13 19:04:34 +02:00
|
|
|
echo "*** 5) patch_romfs"
|
|
|
|
patch_romfs
|
|
|
|
|
|
|
|
echo "*** 6) repack_romfs"
|
|
|
|
repack_3dsromfs romfs/ "${ROMFS}" || exit 51
|
|
|
|
|
|
|
|
echo "*** 7) storing game"
|
|
|
|
fi
|
2016-08-07 11:23:22 +02:00
|
|
|
|
|
|
|
mv "${ROMFS}" "${PATCHIMAGE_ROM_DIR}"
|
|
|
|
|
|
|
|
echo "
|
|
|
|
*** succesfully created new romfs as \"${PATCHIMAGE_ROM_DIR}/${ROMFS}\"
|
|
|
|
"
|
|
|
|
|
|
|
|
[[ ${DATA} ]] && echo \
|
|
|
|
" >> for Hans Banners / Launchers, place all files from
|
|
|
|
|
|
|
|
$(readlink -m "${DATA}")
|
|
|
|
|
|
|
|
into the root of your sd card
|
|
|
|
"
|
|
|
|
|
2016-08-13 19:04:34 +02:00
|
|
|
if [[ ${HANS_DELTA} ]]; then
|
|
|
|
echo "*** 6) remove workdir"
|
|
|
|
else echo "*** 8) remove workdir"
|
|
|
|
fi
|
|
|
|
|
2016-08-07 11:23:22 +02:00
|
|
|
rm -rf romfs/ romfs.bin
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patchimage_delta () {
|
|
|
|
|
|
|
|
show_notes
|
|
|
|
echo -e "\n*** 1) menu"
|
|
|
|
menu || exit 9
|
|
|
|
|
|
|
|
echo -e "\n*** 2) patch"
|
|
|
|
patch || exit 51
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-07-03 20:12:22 +02:00
|
|
|
[[ ! ${GAME} ]] && ask_game
|
2013-06-13 20:12:19 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
for game in ${GAME[@]}; do
|
2013-06-13 20:12:19 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
case ${game} in
|
2013-06-13 20:12:19 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB1 | NewerSMB )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newersmb.sh"
|
|
|
|
;;
|
2013-06-15 19:58:07 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB2 | NewerSummerSun )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newersummersun.sh"
|
|
|
|
;;
|
2013-06-20 21:03:40 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB3 | AnotherSMB )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/anothersmb.sh"
|
|
|
|
;;
|
2013-06-20 21:22:39 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB4 | HolidaySpecial )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerholiday.sh"
|
|
|
|
;;
|
2013-06-22 19:30:30 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB5 | Cannon )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/cannon.sh"
|
|
|
|
;;
|
2013-07-02 20:20:20 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB6 | BowserWorld )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/epicbowserworld.sh"
|
|
|
|
;;
|
2013-07-03 16:44:26 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB7 | KoopaCountry )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/koopacountry.sh"
|
|
|
|
;;
|
2013-07-07 09:42:41 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB8 | NewSuperMarioBros4 )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw4.sh"
|
|
|
|
;;
|
2013-07-06 18:25:11 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB9 | RetroRemix )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/retroremix.sh"
|
|
|
|
;;
|
2013-08-06 09:17:05 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB10 | WinterMoon )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/wintermoon.sh"
|
|
|
|
;;
|
2013-08-06 09:34:30 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB11 | NSMBW3 )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw3.sh"
|
|
|
|
;;
|
2013-09-26 19:58:37 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB12 | Vacation )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/summervacation.sh"
|
|
|
|
;;
|
2013-10-12 10:37:29 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB13 | ASLM )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/awesomersuperluigi.sh"
|
|
|
|
;;
|
2014-05-17 10:07:15 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB14 | Sykland )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/skyland.sh"
|
|
|
|
;;
|
2014-05-17 10:07:15 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB15 | RVLution )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/rvlution.sh"
|
|
|
|
;;
|
2014-08-10 21:46:26 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB16 | Midi )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/midissupermariowii.sh"
|
|
|
|
;;
|
2014-08-10 21:59:28 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB17 | DarkUmbra )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/darkumbrasmb.sh"
|
|
|
|
;;
|
2014-08-10 22:12:50 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB18 | NewerApocalypse )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerapocalypse.sh"
|
|
|
|
;;
|
2015-01-20 20:50:53 +01:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB19 | LuigisSuperYoshiBros )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/luigissuperyoshibros.sh"
|
|
|
|
;;
|
2015-01-20 21:01:45 +01:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB20 | NewerFallingLeaf )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerfallingleaf.sh"
|
|
|
|
;;
|
2015-04-11 13:47:31 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB21 | DevilMarioWinterSpecial )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/devilmariowinterspecial.sh"
|
|
|
|
;;
|
2015-04-11 14:02:32 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB22 | NewSMBWOtherWorld )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newsmbwotherworld.sh"
|
|
|
|
;;
|
2016-05-16 17:21:53 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB23 | TheLegendOfYoshi )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/thelegendofyoshi.sh"
|
|
|
|
;;
|
2016-05-16 17:50:28 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB24 | RemixedSuperMarioBros )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/remixedsupermariobroswii.sh"
|
|
|
|
;;
|
2016-05-16 18:02:42 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB25 | GhostlySuperGhostBoos )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/ghostlysuperghostbooswii.sh"
|
|
|
|
;;
|
2016-08-03 22:20:17 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB26 | RevisedSuperMarioBros )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/revisedsupermariobroswii.sh"
|
|
|
|
;;
|
2015-07-11 19:58:10 +02:00
|
|
|
|
2016-08-07 20:25:21 +02:00
|
|
|
NSMB27 | MLGSuperLuigi )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/mlgsuperluigibroswii.sh"
|
|
|
|
;;
|
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
NSMB99 | NSMBWCharacters )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw_characters.sh"
|
|
|
|
;;
|
2014-05-11 19:26:58 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW1 | Wiimmfi )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/wiimmfi.sh"
|
|
|
|
;;
|
2014-05-13 17:49:00 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW2 | Wiimmpatch )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/wiimmfi_generic.sh"
|
|
|
|
;;
|
2014-05-14 20:38:48 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW3 | Mkwiimm )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm.sh"
|
|
|
|
;;
|
2014-05-13 19:32:54 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW4 | MkwiimmItems )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_items.sh"
|
|
|
|
;;
|
2014-05-18 07:51:09 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW5 | MkwiimmFonts )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_fonts.sh"
|
|
|
|
;;
|
2015-04-11 21:01:24 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
MKW6 | MkwiimmKarts )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_karts.sh"
|
|
|
|
;;
|
2014-05-15 20:54:19 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
KAW1 | Kirby )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh"
|
|
|
|
;;
|
2016-07-01 20:07:53 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
TMS1 | TokyoMirageSessions )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh"
|
|
|
|
;;
|
2016-07-26 23:16:49 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN1 | NeoX )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonneox.sh"
|
|
|
|
;;
|
2016-07-26 23:16:49 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN2 | NeoY )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonneoy.sh"
|
|
|
|
;;
|
2016-07-27 18:22:48 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN3 | RutileRuby )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonrutileruby.sh"
|
|
|
|
;;
|
2016-07-27 18:22:48 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN4 | AlphaSapphire )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonstarsapphire.sh"
|
|
|
|
;;
|
2016-08-02 21:40:04 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN5 | EternalX )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemoneternalx.sh"
|
|
|
|
;;
|
2016-08-02 21:40:04 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN6 | WiltingY )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonwiltingy.sh"
|
|
|
|
;;
|
2016-08-03 20:13:23 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN7 | RisingRuby )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonrisingruby.sh"
|
|
|
|
;;
|
2016-08-03 20:13:23 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
PKMN8 | SinkingSapphire )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonsinkingsapphire.sh"
|
|
|
|
;;
|
2016-08-03 22:20:17 +02:00
|
|
|
|
2016-08-13 19:04:34 +02:00
|
|
|
PKMN9 | DeltaEmeraldAS )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemondeltaemerald-as.sh"
|
|
|
|
;;
|
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
BSECU | BravelySecondUncensored )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/bravelyseconduncensored.sh"
|
|
|
|
;;
|
2013-06-22 19:02:37 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
ZEL1 | ParallelWorlds )
|
|
|
|
source "${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh"
|
|
|
|
;;
|
2013-06-13 20:12:19 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
* )
|
|
|
|
echo -e "specified Game ${game} not recognized"
|
2016-08-06 21:43:45 +02:00
|
|
|
continue
|
2016-08-06 21:19:21 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
case ${GAME_TYPE} in
|
|
|
|
"RIIVOLUTION" )
|
|
|
|
patchimage_riivolution
|
|
|
|
;;
|
2016-07-26 23:16:49 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
"MKWIIMM")
|
|
|
|
patchimage_mkwiimm
|
|
|
|
;;
|
2016-07-01 22:06:13 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
"GENERIC")
|
|
|
|
patchimage_generic
|
|
|
|
;;
|
2016-07-01 22:06:13 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
"IPS" )
|
|
|
|
patchimage_ips
|
|
|
|
;;
|
2016-08-06 19:46:07 +02:00
|
|
|
|
2016-08-09 22:54:12 +02:00
|
|
|
"BPS" )
|
|
|
|
patchimage_bps
|
|
|
|
;;
|
|
|
|
|
2016-08-07 11:26:15 +02:00
|
|
|
"PPF" )
|
|
|
|
patchimage_ppf
|
|
|
|
;;
|
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
"HANS" )
|
|
|
|
patchimage_hans
|
|
|
|
;;
|
2016-08-06 19:46:07 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
"DELTA" )
|
|
|
|
patchimage_delta
|
|
|
|
;;
|
2016-07-01 20:07:53 +02:00
|
|
|
|
2016-08-06 21:19:21 +02:00
|
|
|
esac
|
|
|
|
done
|