bugfixes in check_riivolution_patch

This commit is contained in:
Christopher Roy Bratusek 2013-08-06 22:46:51 +02:00
parent 37d6bea04a
commit 898b801026
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,10 @@ v2.6:
call check_input_image_special aswell
- bugfix: WIT got the image name wrong if the image was detected
using check_input_image_special
- bugfix: if PATCHIMAGE_RIIVOLUTION_DOWNLOAD from $HOME/.patchimage.rc
was not honoured by the script
- bugfix: if riivolution patch existed in PATCHIMAGE_RIIVOLUTION_DIR
(set by $HOME/.patchimage.rc) it was not properly handled
- support for Super Mario: Mushroom Adventure PLUS - Winter Moon
- support for NSMBW3: The Final Levels

View File

@ -139,7 +139,7 @@ check_input_image () {
check_riivolution_patch () {
if [[ ${PATCHIMAGE_RIIVOLTUION_DOWNLOAD} == "TRUE" ]]; then
if [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
if [[ ${DOWNLOAD_LINK} ]]; then
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" ]]; then
wget --no-check-certificate ${DOWNLOAD_LINK} -O "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}"
@ -150,7 +150,7 @@ check_riivolution_patch () {
exit 1
fi
elif [[ -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" && ! -d "${RIIVOLUTION_DIR}" ]]; then
tools/unp "${RIIVOLUTION_ZIP}" >/dev/null
tools/unp "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" >/dev/null
elif [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
echo -e "please specify zip/rar to use with --riivolution=<path>"
exit 1