mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-01 07:15:06 +01:00
Tokyo Mirage Sessions #FE: proper exit codes
This commit is contained in:
parent
be73dd6596
commit
16378b9172
@ -13,7 +13,7 @@ right after the failure will you show the following:
|
||||
33 custom banner specified from command line is not a .bnr file
|
||||
39 custom game id specified from command line is not a 6 digit alphanumeric
|
||||
45 error copying new game files
|
||||
51 wit/ips/applyppf/szs caught an error processing files
|
||||
51 wit/ips/applyppf/szs/xdelta3 caught an error processing files
|
||||
57 wget caught an error while downloading
|
||||
63 unp caught an error while unpacking a file
|
||||
69 wiimmfi caught an error patching the image
|
||||
|
@ -24,26 +24,26 @@ menu () {
|
||||
|
||||
if [[ ! ${XDELTA_PATH} ]]; then
|
||||
echo -e "Enter path to the directory containing the delta patches:\n"
|
||||
read XDELTA_PATH
|
||||
read XDELTA_PATH || exit 75
|
||||
fi
|
||||
|
||||
if [[ ! ${CPK_PATH} ]]; then
|
||||
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
|
||||
read CPK_PATH
|
||||
read CPK_PATH || exit 75
|
||||
fi
|
||||
|
||||
if [[ ! -d ${XDELTA_PATH} ]]; then
|
||||
echo "PATH \"${XDELTA_PATH}\" does not exist!"
|
||||
exit 1
|
||||
exit 21
|
||||
elif [[ ! -f ${XDELTA_PATH}/patch_000_map.xdelta ]]; then
|
||||
echo "PATH \"${XDELTA_PATH}\" does not contain the xdelta patches!"
|
||||
exit 1
|
||||
exit 21
|
||||
elif [[ ! -d ${CPK_PATH} ]]; then
|
||||
echo "PATH \"${CPK_PATH}\" does not exist!"
|
||||
exit 1
|
||||
exit 15
|
||||
elif [[ ! -f ${CPK_PATH}/pack_000_map.cpk ]]; then
|
||||
echo "PATH \"${CPK_PATH}\" does not contain the game files (cpk)!"
|
||||
exit 1
|
||||
exit 15
|
||||
fi
|
||||
|
||||
}
|
||||
@ -55,7 +55,7 @@ patch () {
|
||||
echo ">> pack_${patch}.cpk"
|
||||
${XD3} -d -f -s ${CPK_PATH}/pack_${patch}.cpk \
|
||||
${XDELTA_PATH}/patch_${patch}.xdelta \
|
||||
${CPK_PATH}/pack_${patch}.cpk_new || exit 1
|
||||
${CPK_PATH}/pack_${patch}.cpk_new || exit 51
|
||||
|
||||
mv ${CPK_PATH}/pack_${patch}.cpk_new \
|
||||
${CPK_PATH}/pack_${patch}.cpk
|
||||
|
Loading…
Reference in New Issue
Block a user