prepare for character customization in NSMBW

This commit is contained in:
Christopher Roy Bratusek 2015-07-11 19:58:10 +02:00
parent a1ab754b5e
commit f263f98474
3 changed files with 33 additions and 2 deletions

View File

@ -1,4 +1,5 @@
v5.5.0: v5.5.0:
- update szs to version 1.40a
- add support for MKWiimm 2015-05 - add support for MKWiimm 2015-05
v5.4.0: v5.4.0:

View File

@ -127,6 +127,10 @@ case ${GAME} in
source ${PATCHIMAGE_SCRIPT_DIR}/newsmbwotherworld.sh source ${PATCHIMAGE_SCRIPT_DIR}/newsmbwotherworld.sh
;; ;;
NSMB99 | NSMBWCharacters )
source ${PATCHIMAGE_SCRIPT_DIR}/nsmbw_characters.sh
;;
MKW1 | Wiimmfi ) MKW1 | Wiimmfi )
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh
;; ;;

View File

@ -21,7 +21,7 @@ ask_game () {
echo -e \ echo -e \
"************************************************ "************************************************
patchimage v5.3.0 patchimage v6.0.0
Enter ID for the Game you want to create: Enter ID for the Game you want to create:
@ -49,6 +49,8 @@ NSMB20 Newer: Falling Leaf
NSMB21 Devil Mario Winter Special NSMB21 Devil Mario Winter Special
NSMB22 New Super Mario Bros. Wii - Other World NSMB22 New Super Mario Bros. Wii - Other World
NSMB99 Customize Characters
<<<<<< Mario Kart Wii >>>>>> <<<<<< Mario Kart Wii >>>>>>
MKW1 Wiimfi Patcher. Patch Mario Kart to use Wiimm's server MKW1 Wiimfi Patcher. Patch Mario Kart to use Wiimm's server
MKW2 Wiimfi Patcher. Patch WFC games to use Wiimm's server (exp) MKW2 Wiimfi Patcher. Patch WFC games to use Wiimm's server (exp)
@ -248,6 +250,14 @@ check_input_image_mkwiimm () {
} }
show_nsmbw_db () {
ID=${1:0:6}
gawk -F \: "/^${ID}/"'{print $2}' \
< ${PATCHIMAGE_SCRIPT_DIR}/nsmbw.db || echo "** Unknown **"
}
show_mkwiimm_db () { show_mkwiimm_db () {
ID=${1:4:2} ID=${1:4:2}
@ -272,6 +282,22 @@ ask_input_image_mkwiimm () {
} }
ask_input_image_nsmbw () {
echo "Choose New Super Mario Bros. Wii Image to modify
ALL patch all images"
for image in ${1}/MSN???.{iso,wbfs}; do
if [[ -e ${image} ]]; then
echo " ${image##*/} $(show_nsmbw_db ${image##*/})"
fi
done
echo ""
}
show_titles_db () { show_titles_db () {
ID=${1/.*} ID=${1/.*}