NSMBW character mod now live

This commit is contained in:
Christopher Roy Bratusek 2015-07-12 19:59:08 +02:00
parent 65028ee575
commit 3f1cf46841
2 changed files with 5 additions and 5 deletions

View File

@ -252,8 +252,9 @@ check_input_image_mkwiimm () {
show_nsmb_db () {
ID=${1:0:6}
gawk -F \: "/^${ID}/"'{print $2}' \
ID1=${1:0:3}
ID2=${1:4:2}
gawk -F \: "/^${ID1}\*${ID2}/"'{print $2}' \
< ${PATCHIMAGE_SCRIPT_DIR}/nsmbw.db || echo "** Unknown **"
}
@ -288,7 +289,7 @@ ask_input_image_nsmb () {
ALL patch all images"
for image in ${1}/MSN???.{iso,wbfs}; do
for image in ${1}/SMN???.{iso,wbfs} ${1}/SLF???.{iso,wbfs} ${1}/SMM???.{iso,wbfs} ${1}/SMV???.{iso,wbfs} ${1}/MRR???.{iso,wbfs}; do
if [[ -e ${image} ]]; then
echo " ${image##*/} $(show_nsmb_db ${image##*/})"
fi

View File

@ -64,10 +64,9 @@ pi_action () {
&& exit 57)
fi
slot=$(gawk -F \: "/^${player}/"'{print $2}' ${PATCHIMAGE_SCRIPT_DIR}/nsmbw_characters.db)
choosenplayers=( ${choosenplayers[@]} player:${slot} )
choosenplayers=( ${choosenplayers[@]} ${player}:${slot} )
done
echo ${choosenplayers[@]}
echo "choosenplayers=( ${choosenplayers[@]} )" > ${HOME}/.patchimage.choice
fi