fix cover-downloads for wiimmfi

This commit is contained in:
Christopher Roy Bratusek 2014-05-11 22:36:19 +02:00
parent b4b4b403d5
commit 30975fc58a
2 changed files with 13 additions and 10 deletions

View File

@ -184,14 +184,6 @@ case ${GAME_TYPE} in
"MKWIIMM")
show_notes
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
echo "\n*** B) download_covers"
download_covers
if [[ ${ONLY_COVERS} ]]; then
exit 0
fi
fi
echo -e "\n*** 1) check_input_image"
check_input_image
echo -e "\n*** 2) check_input_image_special"

View File

@ -47,10 +47,16 @@ patch_wiimm () {
if [[ ${ID} == ALL ]]; then
for image in ${IMAGE%/*}/RMC???.{iso,wbfs}; do
if [[ -e ${image} ]]; then
ximg=${image##*}
cp -v "${image}" .
./create-image.sh >/dev/null
mv -v ./wiimmfi-images/${image##*/} "${PATCHIMAGE_GAME_DIR}"/
rm ${image##*/}
mv -v ./wiimmfi-images/${ximg} "${PATCHIMAGE_GAME_DIR}"/
rm ${ximg}
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
echo "\n*** Z) download_covers"
download_covers ${ximg/.*}
fi
fi
done
else
@ -58,6 +64,11 @@ patch_wiimm () {
./create-image.sh >/dev/null
mv -v ./wiimmfi-images/${ID} "${PATCHIMAGE_GAME_DIR}"/
rm -f ${ID}
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
echo "\n*** Z) download_covers"
download_covers ${ID/.*}
fi
fi
rm -rf ${HOME}/.patchimage/tools/wiimfi-patcher/