mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 01:59:20 +01:00
minor internal changes
This commit is contained in:
parent
ca0349994d
commit
71256272af
@ -29,12 +29,9 @@ source ${PATCHIMAGE_SCRIPT_DIR}/common.sh
|
||||
optparse "${@}"
|
||||
|
||||
check_directories
|
||||
|
||||
setup_tools
|
||||
|
||||
if [[ ! ${GAME} ]]; then
|
||||
ask_game
|
||||
fi
|
||||
[[ ! ${GAME} ]] && ask_game
|
||||
|
||||
case ${GAME} in
|
||||
|
||||
@ -170,7 +167,7 @@ case ${GAME} in
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh
|
||||
;;
|
||||
|
||||
TMS1 | TokyoMirageSessions )
|
||||
TMSFE | TokyoMirageSessions )
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh
|
||||
;;
|
||||
|
||||
@ -279,6 +276,7 @@ case ${GAME_TYPE} in
|
||||
${IPS} a "${PATCH}" "${GAMENAME}.${ext}" || exit 51
|
||||
else
|
||||
echo -e "error: patch (${PATCH}) could not be found"
|
||||
exit 21
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -286,10 +284,10 @@ case ${GAME_TYPE} in
|
||||
show_notes
|
||||
|
||||
echo -e "\n*** 1) menu"
|
||||
menu || exit 1
|
||||
menu || exit 9
|
||||
|
||||
echo -e "\n*** 2) patch"
|
||||
patch || exit 1
|
||||
patch || exit 51
|
||||
;;
|
||||
|
||||
esac
|
||||
|
@ -150,25 +150,15 @@ apply_banner () {
|
||||
|
||||
check_directories () {
|
||||
|
||||
if [[ ! -d ${PATCHIMAGE_RIIVOLUTION_DIR} ]]; then
|
||||
mkdir -p ${PATCHIMAGE_RIIVOLUTION_DIR}
|
||||
fi
|
||||
[[ ! -d ${PATCHIMAGE_RIIVOLUTION_DIR} ]] && mkdir -p ${PATCHIMAGE_RIIVOLUTION_DIR}
|
||||
|
||||
if [[ ! -d ${PATCHIMAGE_WBFS_DIR} ]]; then
|
||||
mkdir -p ${PATCHIMAGE_WBFS_DIR}
|
||||
fi
|
||||
[[ ! -d ${PATCHIMAGE_WBFS_DIR} ]] && mkdir -p ${PATCHIMAGE_WBFS_DIR}
|
||||
|
||||
if [[ ! -d ${PATCHIMAGE_GAME_DIR} ]]; then
|
||||
mkdir -p ${PATCHIMAGE_GAME_DIR}
|
||||
fi
|
||||
[[ ! -d ${PATCHIMAGE_GAME_DIR} ]] && mkdir -p ${PATCHIMAGE_GAME_DIR}
|
||||
|
||||
if [[ ! -d ${PATCHIMAGE_AUDIO_DIR} ]]; then
|
||||
mkdir -p ${PATCHIMAGE_AUDIO_DIR}
|
||||
fi
|
||||
[[ ! -d ${PATCHIMAGE_AUDIO_DIR} ]] && mkdir -p ${PATCHIMAGE_AUDIO_DIR}
|
||||
|
||||
if [[ ! -d ${PATCHIMAGE_COVER_DIR} ]]; then
|
||||
mkdir -p ${PATCHIMAGE_COVER_DIR}
|
||||
fi
|
||||
[[ ! -d ${PATCHIMAGE_COVER_DIR} ]] && mkdir -p ${PATCHIMAGE_COVER_DIR}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user