mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-01 07:15:06 +01:00
fix cover-downloads for wiimmfi
This commit is contained in:
parent
b4b4b403d5
commit
30975fc58a
@ -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"
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user