mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
NSMBW character mod now live
This commit is contained in:
parent
65028ee575
commit
3f1cf46841
@ -252,8 +252,9 @@ check_input_image_mkwiimm () {
|
|||||||
|
|
||||||
show_nsmb_db () {
|
show_nsmb_db () {
|
||||||
|
|
||||||
ID=${1:0:6}
|
ID1=${1:0:3}
|
||||||
gawk -F \: "/^${ID}/"'{print $2}' \
|
ID2=${1:4:2}
|
||||||
|
gawk -F \: "/^${ID1}\*${ID2}/"'{print $2}' \
|
||||||
< ${PATCHIMAGE_SCRIPT_DIR}/nsmbw.db || echo "** Unknown **"
|
< ${PATCHIMAGE_SCRIPT_DIR}/nsmbw.db || echo "** Unknown **"
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -288,7 +289,7 @@ ask_input_image_nsmb () {
|
|||||||
|
|
||||||
ALL patch all images"
|
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
|
if [[ -e ${image} ]]; then
|
||||||
echo " ${image##*/} $(show_nsmb_db ${image##*/})"
|
echo " ${image##*/} $(show_nsmb_db ${image##*/})"
|
||||||
fi
|
fi
|
||||||
|
@ -64,9 +64,8 @@ pi_action () {
|
|||||||
&& exit 57)
|
&& exit 57)
|
||||||
fi
|
fi
|
||||||
slot=$(gawk -F \: "/^${player}/"'{print $2}' ${PATCHIMAGE_SCRIPT_DIR}/nsmbw_characters.db)
|
slot=$(gawk -F \: "/^${player}/"'{print $2}' ${PATCHIMAGE_SCRIPT_DIR}/nsmbw_characters.db)
|
||||||
choosenplayers=( ${choosenplayers[@]} player:${slot} )
|
choosenplayers=( ${choosenplayers[@]} ${player}:${slot} )
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
echo ${choosenplayers[@]}
|
echo ${choosenplayers[@]}
|
||||||
echo "choosenplayers=( ${choosenplayers[@]} )" > ${HOME}/.patchimage.choice
|
echo "choosenplayers=( ${choosenplayers[@]} )" > ${HOME}/.patchimage.choice
|
||||||
|
Loading…
Reference in New Issue
Block a user