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 "${@}" optparse "${@}"
check_directories check_directories
setup_tools setup_tools
if [[ ! ${GAME} ]]; then [[ ! ${GAME} ]] && ask_game
ask_game
fi
case ${GAME} in case ${GAME} in
@ -170,7 +167,7 @@ case ${GAME} in
source ${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh source ${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh
;; ;;
TMS1 | TokyoMirageSessions ) TMSFE | TokyoMirageSessions )
source ${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh source ${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh
;; ;;
@ -279,6 +276,7 @@ case ${GAME_TYPE} in
${IPS} a "${PATCH}" "${GAMENAME}.${ext}" || exit 51 ${IPS} a "${PATCH}" "${GAMENAME}.${ext}" || exit 51
else else
echo -e "error: patch (${PATCH}) could not be found" echo -e "error: patch (${PATCH}) could not be found"
exit 21
fi fi
;; ;;
@ -286,10 +284,10 @@ case ${GAME_TYPE} in
show_notes show_notes
echo -e "\n*** 1) menu" echo -e "\n*** 1) menu"
menu || exit 1 menu || exit 9
echo -e "\n*** 2) patch" echo -e "\n*** 2) patch"
patch || exit 1 patch || exit 51
;; ;;
esac esac

View File

@ -150,25 +150,15 @@ apply_banner () {
check_directories () { check_directories () {
if [[ ! -d ${PATCHIMAGE_RIIVOLUTION_DIR} ]]; then [[ ! -d ${PATCHIMAGE_RIIVOLUTION_DIR} ]] && mkdir -p ${PATCHIMAGE_RIIVOLUTION_DIR}
mkdir -p ${PATCHIMAGE_RIIVOLUTION_DIR}
fi
if [[ ! -d ${PATCHIMAGE_WBFS_DIR} ]]; then [[ ! -d ${PATCHIMAGE_WBFS_DIR} ]] && mkdir -p ${PATCHIMAGE_WBFS_DIR}
mkdir -p ${PATCHIMAGE_WBFS_DIR}
fi
if [[ ! -d ${PATCHIMAGE_GAME_DIR} ]]; then [[ ! -d ${PATCHIMAGE_GAME_DIR} ]] && mkdir -p ${PATCHIMAGE_GAME_DIR}
mkdir -p ${PATCHIMAGE_GAME_DIR}
fi
if [[ ! -d ${PATCHIMAGE_AUDIO_DIR} ]]; then [[ ! -d ${PATCHIMAGE_AUDIO_DIR} ]] && mkdir -p ${PATCHIMAGE_AUDIO_DIR}
mkdir -p ${PATCHIMAGE_AUDIO_DIR}
fi
if [[ ! -d ${PATCHIMAGE_COVER_DIR} ]]; then [[ ! -d ${PATCHIMAGE_COVER_DIR} ]] && mkdir -p ${PATCHIMAGE_COVER_DIR}
mkdir -p ${PATCHIMAGE_COVER_DIR}
fi
} }