fixup, add titles.db (show gamenames for generic wiimmfi patcher)

This commit is contained in:
Christopher Roy Bratusek 2014-05-13 18:57:58 +02:00
parent cdad03603d
commit abaa695495
2 changed files with 8050 additions and 5 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff