From 01d5a67b27a7978066a745ac1971bd110910918f Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 5 Aug 2016 16:02:10 +0200 Subject: [PATCH] update docs, completely kill BASE.iso / BASE.wbfs stuff --- README.GAMEIDS | 18 ++++++------------ README.STATUS_CODES | 11 ++++------- script.d/common.sh | 10 ++++------ script.d/tokyomiragesessionsfe.sh | 6 +++--- 4 files changed, 17 insertions(+), 28 deletions(-) diff --git a/README.GAMEIDS b/README.GAMEIDS index 6773653..0beffec 100644 --- a/README.GAMEIDS +++ b/README.GAMEIDS @@ -9,10 +9,8 @@ b) ${PATCHIMAGE_WBFS_DIR} >> expected filenames -a) BASE.iso -b) BASE.wbfs -c) SMN?01.iso -d) SMN?01.wbfs +a) SMN?01.iso +b) SMN?01.wbfs SLF?01 NSMBW3: The Final Levels SMN?03 Newer Super Mario Bros. Wii @@ -50,10 +48,8 @@ b) ${PATCHIMAGE_WBFS_DIR} >> expected filenames -a) BASE.iso -b) BASE.wbfs -c) RMC?01.iso -d) RMC?01.wbfs +a) RMC?01.iso +b) RMC?01.wbfs RMC?06 Wiimms MKW Fun 2010-12 RMC?07 Wiimms MKW Retro 2011-02 @@ -92,10 +88,8 @@ b) ${PATCHIMAGE_WBFS_DIR} >> expected filenames -a) BASE.iso -b) BASE.wbfs -c) SUK?01.iso -d) SUK?01.wbfs +a) SUK?01.iso +b) SUK?01.wbfs SUK?01 Kirby's Adventure Wii * exchange first player's character diff --git a/README.STATUS_CODES b/README.STATUS_CODES index 9cc34f2..8adcfac 100644 --- a/README.STATUS_CODES +++ b/README.STATUS_CODES @@ -1,13 +1,8 @@ While the script executes you will see some status codes, below you will find the meaning: phase code meaning - *** 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 .iso/.wbfs found (or required if *** 1) exited with 1 or 2) + *** 1) 0 no .iso/.wbfs found (or required if *** 1) exited with 1 or 2) 1 .iso found in ${PWD} 2 .wbfs found in ${PWD} 3 .iso found in ${PATCHIMAGE_WBFS_DIR} @@ -15,8 +10,10 @@ While the script executes you will see some status codes, below you will find th 5 no .cxi found (3DS ROM) 6 .cxi found in ${PWD} 7 .cxi found in ${PATCHIMAGE_3DS_DIR} + 8 xdelta/cpk found based on interactive user-input + 9 xdelta/cpk found based on non-interactive user-input - *** 3) 0 no riivolution files found unpacked in ${PWD} + *** 2) 0 no riivolution files found unpacked in ${PWD} 1 riivolution files/archive not found in ${PWD} 2 riivolution archive found in ${PWD} 3 riivolution archive found in ${PATCHIMAGE_RIIVOLUTION_DIR} diff --git a/script.d/common.sh b/script.d/common.sh index 9416929..a4cbd06 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -450,9 +450,8 @@ while [[ $xcount -lt $pcount ]]; do ISO_PATH=${1/*=} ISO_EXT=${ISO_PATH//*./} - if [[ -e "${ISO_PATH}" ]]; then - ln -sf "${ISO_PATH}" BASE.${ISO_EXT} - IMAGE=BASE.${ISO_EXT} + if [[ -f "${ISO_PATH}" ]]; then + IMAGE="${ISO_PATH}" else echo -e "ISO not found" exit 15 @@ -463,9 +462,8 @@ while [[ $xcount -lt $pcount ]]; do ROM_PATH=${1/*=} ROM_EXT=${ROM_PATH//*./} - if [[ -e "${ROM_PATH}" ]]; then - ln -sf "${ROM_PATH}" BASE.${ROM_EXT} - IMAGE=BASE.${ROM_EXT} + if [[ -f "${ROM_PATH}" ]]; then + IMAGE="${ROM_PATH}" else echo -e "ROM not found" exit 15 diff --git a/script.d/tokyomiragesessionsfe.sh b/script.d/tokyomiragesessionsfe.sh index c826e21..a05790c 100644 --- a/script.d/tokyomiragesessionsfe.sh +++ b/script.d/tokyomiragesessionsfe.sh @@ -22,18 +22,18 @@ menu () { echo -e "\nTokyo Mirage Sessions #FE restoration patcher" - status=3 + status=8 if [[ ! ${XDELTA_PATH} ]]; then echo -e "\nEnter path to the directory containing the delta patches:\n" read XDELTA_PATH || exit 75 - else status=4 + else status=9 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 + else status=9 fi if [[ ! -d ${XDELTA_PATH} ]]; then