fixup parallel worlds patcher

This commit is contained in:
Christopher Roy Bratusek 2016-08-07 11:22:12 +02:00
parent d94d77c08d
commit d521071e05
2 changed files with 5 additions and 15 deletions

View File

@ -397,7 +397,8 @@ check_riivolution_patch () {
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
x=5
echo "*** >> downloading"
${GDOWN} "${DOWNLOAD_LINK}" "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || exit 57
${GDOWN} "${DOWNLOAD_LINK}" \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || exit 57
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking"
unpack "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
@ -418,7 +419,8 @@ check_riivolution_patch () {
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
x=5
echo "*** >> downloading"
wget -q --no-check-certificate "${DOWNLOAD_LINK}" -O "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || exit 57
wget -q --no-check-certificate "${DOWNLOAD_LINK}" \
-O "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || exit 57
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking"
unpack "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"

View File

@ -2,7 +2,7 @@
ROM_MASK="*[Ll]ink*[Pp]ast*smc"
DOWNLOAD_LINK="https://sites.google.com/site/zeldaparallelworlds/lozpw110.rar"
DOWNLOAD_ZIP="lozpw110.rar"
RIIVOLUTION_ZIP="lozpw110.rar"
PATCH="ZPW_1.1.ips"
GAMENAME="The Legend of Zelda - Parallel Worlds"
GAME_TYPE=IPS
@ -22,15 +22,3 @@ Supported Versions: US
************************************************"
}
check_input_rom () {
if [[ ! ${ROM} ]]; then
ROM=$(find . -name "${ROM_MASK}" | sed -e 's,./,,')
if [[ ${ROM} == "" ]]; then
echo -e "error: could not find suitable ROM, specify using --rom"
exit 15
fi
fi
}