mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-10-31 23:05:06 +01:00
fixup Tokyo Mirage Sessions FE patcher
This commit is contained in:
parent
1a87ed90c7
commit
2e3da07726
@ -6,9 +6,6 @@ v7.4.0:
|
||||
- more failsafe build-directory name
|
||||
- add support for downloading xdelta files with --download
|
||||
- check whether files have already been downloaded and use those
|
||||
- if you want to re-download the files regardless, simply use --download
|
||||
this will trigger re-download (unlike for Riivolution archives, where
|
||||
--download will not re-download if the file[s] were found)
|
||||
- for xdelta patches and original cpk files, now check whether every single
|
||||
file exists, rather than just one of them
|
||||
- for cpk file path support both the top level directory of the dump as well
|
||||
|
@ -10,7 +10,7 @@ DOWNLOAD_LINKS=( "patch_000_map.xdelta+https://drive.google.com/uc?id=0BxykxdPQq
|
||||
"patch_030_etc.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZNEZfN1hqOHVYZ0E&export=download"
|
||||
"patch_031_message.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZTDlRdzlkUno3ZXM&export=download"
|
||||
"patch_050_movie.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZNU5kNlh2d1VRQzQ&export=download"
|
||||
"patch_999_etc_om.xdelta+https://drive.google.com/drive/folders/0BxykxdPQq3oZbVNGODB2TFlKTHc"
|
||||
"patch_999_etc_om.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZN2VxTERFY2JPUFU"
|
||||
"patch_999_lua.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZUERRR0w2Nnl2YUk&export=download" )
|
||||
|
||||
show_notes () {
|
||||
@ -58,13 +58,24 @@ menu () {
|
||||
for delta in ${DOWNLOAD_LINKS[@]}; do
|
||||
DL_NAME=${delta/+*}
|
||||
DL_LINK=${delta/*+}
|
||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}" ]]; then
|
||||
${GDOWN} "${DL_LINK}" \
|
||||
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp || \
|
||||
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp && \
|
||||
echo -e "\nDownload failed!" && exit 57 )
|
||||
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp \
|
||||
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"
|
||||
if [[ ${DL_NAME} == patch_999_etc_om.xdelta ]]; then
|
||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}" ]]; then
|
||||
wget -nv "${DL_LINK}" \
|
||||
-O "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp || \
|
||||
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp && \
|
||||
echo -e "\nDownload failed!" && exit 57 )
|
||||
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp \
|
||||
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"
|
||||
fi
|
||||
else
|
||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}" ]]; then
|
||||
${GDOWN} "${DL_LINK}" \
|
||||
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp || \
|
||||
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp && \
|
||||
echo -e "\nDownload failed!" && exit 57 )
|
||||
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp \
|
||||
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user