mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
Tokyo Mirage Sessions #FE:
- allow non-interactive patching using new --xdelta and --cpk params - properly stop at errors
This commit is contained in:
parent
af834992ba
commit
be73dd6596
@ -538,6 +538,14 @@ while [[ $xcount -lt $pcount ]]; do
|
|||||||
PATCHIMAGE_BANNER_DOWNLOAD=TRUE
|
PATCHIMAGE_BANNER_DOWNLOAD=TRUE
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
--xdelta=* )
|
||||||
|
XDELTA_PATH=${1/*=}
|
||||||
|
;;
|
||||||
|
|
||||||
|
--cpk=* )
|
||||||
|
CPK_PATH=${1/*=}
|
||||||
|
;;
|
||||||
|
|
||||||
--help | -h )
|
--help | -h )
|
||||||
echo -e "patchimage ${PATCHIMAGE_VERSION} (${PATCHIMAGE_RELEASE})
|
echo -e "patchimage ${PATCHIMAGE_VERSION} (${PATCHIMAGE_RELEASE})
|
||||||
|
|
||||||
@ -556,7 +564,9 @@ while [[ $xcount -lt $pcount ]]; do
|
|||||||
--covers | download covers (if available)
|
--covers | download covers (if available)
|
||||||
--only-covers=SMNP02 | download covers only (if available)
|
--only-covers=SMNP02 | download covers only (if available)
|
||||||
--banner=<banner.bnr> | use a custom banner (riivolution games)
|
--banner=<banner.bnr> | use a custom banner (riivolution games)
|
||||||
--download-banner | download a custom banner (if available)"
|
--download-banner | download a custom banner (if available)
|
||||||
|
--xdelta=<path> | path to xdelta patches
|
||||||
|
--cpk=<path> | path to unpatched xdelta patches"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -20,29 +20,30 @@ Supported Versions: EUR, US
|
|||||||
|
|
||||||
menu () {
|
menu () {
|
||||||
|
|
||||||
echo -e "
|
echo -e "\nTokyo Mirage Sessions #FE restoration patcher\n"
|
||||||
|
|
||||||
Tokyo Mirage Sessions #FE restoration patcher
|
if [[ ! ${XDELTA_PATH} ]]; then
|
||||||
|
echo -e "Enter path to the directory containing the delta patches:\n"
|
||||||
|
read XDELTA_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
Enter path to the directory containing the delta patches:
|
if [[ ! ${CPK_PATH} ]]; then
|
||||||
"
|
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
|
||||||
|
read CPK_PATH
|
||||||
read XDELTA_PATH
|
fi
|
||||||
|
|
||||||
echo -e "
|
|
||||||
Enter path to the directory containing the game files (cpk):
|
|
||||||
"
|
|
||||||
|
|
||||||
read CPK_PATH
|
|
||||||
|
|
||||||
if [[ ! -d ${XDELTA_PATH} ]]; then
|
if [[ ! -d ${XDELTA_PATH} ]]; then
|
||||||
echo "PATH \"${XDELTA_PATH}\" does not exist!" || exit 1
|
echo "PATH \"${XDELTA_PATH}\" does not exist!"
|
||||||
|
exit 1
|
||||||
elif [[ ! -f ${XDELTA_PATH}/patch_000_map.xdelta ]]; then
|
elif [[ ! -f ${XDELTA_PATH}/patch_000_map.xdelta ]]; then
|
||||||
echo "PATH \"${XDELTA_PATH}\" does not contain the xdelta patches!" || exit 1
|
echo "PATH \"${XDELTA_PATH}\" does not contain the xdelta patches!"
|
||||||
|
exit 1
|
||||||
elif [[ ! -d ${CPK_PATH} ]]; then
|
elif [[ ! -d ${CPK_PATH} ]]; then
|
||||||
echo "PATH \"${CPK_PATH}\" does not exist!" || exit 1
|
echo "PATH \"${CPK_PATH}\" does not exist!"
|
||||||
|
exit 1
|
||||||
elif [[ ! -f ${CPK_PATH}/pack_000_map.cpk ]]; then
|
elif [[ ! -f ${CPK_PATH}/pack_000_map.cpk ]]; then
|
||||||
echo "PATH \"${CPK_PATH}\" does not contain the game files (cpk)!" || exit 1
|
echo "PATH \"${CPK_PATH}\" does not contain the game files (cpk)!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user