mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +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")
|
"MKWIIMM")
|
||||||
show_notes
|
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"
|
echo -e "\n*** 1) check_input_image"
|
||||||
check_input_image
|
check_input_image
|
||||||
echo -e "\n*** 2) check_input_image_special"
|
echo -e "\n*** 2) check_input_image_special"
|
||||||
|
@ -47,10 +47,16 @@ patch_wiimm () {
|
|||||||
if [[ ${ID} == ALL ]]; then
|
if [[ ${ID} == ALL ]]; then
|
||||||
for image in ${IMAGE%/*}/RMC???.{iso,wbfs}; do
|
for image in ${IMAGE%/*}/RMC???.{iso,wbfs}; do
|
||||||
if [[ -e ${image} ]]; then
|
if [[ -e ${image} ]]; then
|
||||||
|
ximg=${image##*}
|
||||||
cp -v "${image}" .
|
cp -v "${image}" .
|
||||||
./create-image.sh >/dev/null
|
./create-image.sh >/dev/null
|
||||||
mv -v ./wiimmfi-images/${image##*/} "${PATCHIMAGE_GAME_DIR}"/
|
mv -v ./wiimmfi-images/${ximg} "${PATCHIMAGE_GAME_DIR}"/
|
||||||
rm ${image##*/}
|
rm ${ximg}
|
||||||
|
|
||||||
|
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
|
||||||
|
echo "\n*** Z) download_covers"
|
||||||
|
download_covers ${ximg/.*}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
@ -58,6 +64,11 @@ patch_wiimm () {
|
|||||||
./create-image.sh >/dev/null
|
./create-image.sh >/dev/null
|
||||||
mv -v ./wiimmfi-images/${ID} "${PATCHIMAGE_GAME_DIR}"/
|
mv -v ./wiimmfi-images/${ID} "${PATCHIMAGE_GAME_DIR}"/
|
||||||
rm -f ${ID}
|
rm -f ${ID}
|
||||||
|
|
||||||
|
if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then
|
||||||
|
echo "\n*** Z) download_covers"
|
||||||
|
download_covers ${ID/.*}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ${HOME}/.patchimage/tools/wiimfi-patcher/
|
rm -rf ${HOME}/.patchimage/tools/wiimfi-patcher/
|
||||||
|
Loading…
Reference in New Issue
Block a user