mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-10-31 23:05:06 +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
|
||||
;;
|
||||
|
||||
--xdelta=* )
|
||||
XDELTA_PATH=${1/*=}
|
||||
;;
|
||||
|
||||
--cpk=* )
|
||||
CPK_PATH=${1/*=}
|
||||
;;
|
||||
|
||||
--help | -h )
|
||||
echo -e "patchimage ${PATCHIMAGE_VERSION} (${PATCHIMAGE_RELEASE})
|
||||
|
||||
@ -556,7 +564,9 @@ while [[ $xcount -lt $pcount ]]; do
|
||||
--covers | download covers (if available)
|
||||
--only-covers=SMNP02 | download covers only (if available)
|
||||
--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
|
||||
;;
|
||||
esac
|
||||
|
@ -20,29 +20,30 @@ Supported Versions: EUR, US
|
||||
|
||||
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:
|
||||
"
|
||||
|
||||
read XDELTA_PATH
|
||||
|
||||
echo -e "
|
||||
Enter path to the directory containing the game files (cpk):
|
||||
"
|
||||
|
||||
read CPK_PATH
|
||||
if [[ ! ${CPK_PATH} ]]; then
|
||||
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
|
||||
read CPK_PATH
|
||||
fi
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user