minor internal changes

This commit is contained in:
Christopher Roy Bratusek 2016-07-03 20:12:22 +02:00
parent ca0349994d
commit 71256272af
2 changed files with 10 additions and 22 deletions

View File

@ -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

View File

@ -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}
}