make game type DELTA behave like other game types

This commit is contained in:
Christopher Roy Bratusek 2016-07-01 22:06:13 +02:00
parent 16378b9172
commit 44c631cd09
3 changed files with 15 additions and 3 deletions

View File

@ -4,6 +4,8 @@ While the script executes you will see some status codes, below you will find th
*** 1) 0 neither BASE.iso nor BASE.wbfs found
1 BASE.iso found in ${PWD}
2 BASE.wbfs found in ${PWD}
3 xdelta/cpk found based on interactive user-input
4 xdelta/cpk found based on non-interactive user-input
*** 2) 0 no <GAMEID>.iso/.wbfs found (or required if *** 1) exited with 1 or 2)
1 <GAMEID>.iso found in ${PWD}

View File

@ -285,7 +285,11 @@ case ${GAME_TYPE} in
"DELTA" )
show_notes
echo -e "\n*** 1) menu"
menu || exit 1
echo -e "\n*** 2) patch"
patch || exit 1
;;

View File

@ -20,16 +20,20 @@ Supported Versions: EUR, US
menu () {
echo -e "\nTokyo Mirage Sessions #FE restoration patcher\n"
echo -e "\nTokyo Mirage Sessions #FE restoration patcher"
status=3
if [[ ! ${XDELTA_PATH} ]]; then
echo -e "Enter path to the directory containing the delta patches:\n"
echo -e "\nEnter path to the directory containing the delta patches:\n"
read XDELTA_PATH || exit 75
else status=4
fi
if [[ ! ${CPK_PATH} ]]; then
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
read CPK_PATH || exit 75
else status=4
fi
if [[ ! -d ${XDELTA_PATH} ]]; then
@ -46,6 +50,8 @@ menu () {
exit 15
fi
echo ">>> status: ${status}"
}
patch () {