mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54: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 () {
|
||||
|
||||
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
|
||||
|
@ -64,9 +64,8 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user