mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
fixup, add titles.db (show gamenames for generic wiimmfi patcher)
This commit is contained in:
parent
cdad03603d
commit
abaa695495
@ -160,12 +160,12 @@ check_input_image () {
|
|||||||
|
|
||||||
x=0
|
x=0
|
||||||
if [[ ! ${IMAGE} ]]; then
|
if [[ ! ${IMAGE} ]]; then
|
||||||
if [[ *.wbfs ]]; then
|
if [[ -f BASE.wbfs ]]; then
|
||||||
x=1
|
x=1
|
||||||
IMAGE=*.wbfs
|
IMAGE=BASE.wbfs
|
||||||
elif [[ *.iso ]]; then
|
elif [[ -f BASE.iso ]]; then
|
||||||
x=1
|
x=1
|
||||||
IMAGE=*.iso
|
IMAGE=BASE.iso
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "*** >> status: ${x}"
|
echo "*** >> status: ${x}"
|
||||||
@ -246,13 +246,21 @@ ask_input_image_mkwiimm () {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_titles_db () {
|
||||||
|
|
||||||
|
ID=${1/.*}
|
||||||
|
gawk -F \: "/^${ID}/"'{print $2}' \
|
||||||
|
< ${PATCHIMAGE_SCRIPT_DIR}/titles.db || echo "** Unknown **"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ask_input_image_wiimmfi () {
|
ask_input_image_wiimmfi () {
|
||||||
|
|
||||||
echo "Choose Wii Game Image to wiimmfi"
|
echo "Choose Wii Game Image to wiimmfi"
|
||||||
|
|
||||||
for image in ${1}/*.{iso,wbfs}; do
|
for image in ${1}/*.{iso,wbfs}; do
|
||||||
if [[ -e ${image} && ! ${image} == "*/RMC*" ]]; then
|
if [[ -e ${image} && ! ${image} == "*/RMC*" ]]; then
|
||||||
echo " ${image##*/}"
|
echo " ${image##*/} $(show_titles_db ${image##*/})"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
8037
script.d/titles.db
Normal file
8037
script.d/titles.db
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user