aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-06-05 02:13:36 -0600
committerBryson Steck <steck.bryson@gmail.com>2022-06-05 02:13:36 -0600
commit758ff779a01df9e1560210b08c0dccb3fff312a3 (patch)
treeda7cd975fb64511a08a64478fad65f92c5096461
parent3779be838eec0d8ed61e9b19339e07259a38b2c8 (diff)
downloadriibalanced-patcher-758ff779a01df9e1560210b08c0dccb3fff312a3.tar
riibalanced-patcher-758ff779a01df9e1560210b08c0dccb3fff312a3.tar.gz
riibalanced-patcher-758ff779a01df9e1560210b08c0dccb3fff312a3.tar.bz2
add cmd for wit
-rwxr-xr-xpatch_iso.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/patch_iso.sh b/patch_iso.sh
index 5609176..0b5d82c 100755
--- a/patch_iso.sh
+++ b/patch_iso.sh
@@ -143,8 +143,13 @@ fi
# start extract -----------------------------------------------------------------
-wit extract $1 RMCE01
-ERROR="$?"
+if [[ $CYGWIN ]]; then
+ cmd /C wit extract $1 RMCE01
+ ERROR="$?"
+else
+ wit extract $1 RMCE01
+ ERROR="$?"
+fi
if [[ ERROR -ne 0 ]]; then
echo "ERROR: wit has returned non-zero exit code $ERROR. Please check that your disc image is authentic and valid."
@@ -315,8 +320,13 @@ fi
# build -------------------------------------------------------------------------
-wit mix RMCE01/ -B --dest riibalanced.wbfs
-wit edit riibalanced.wbfs --name MarioKartRiibalanced
+if [[ $CYGWIN ]]; then
+ cmd /C wit mix RMCE01\ -B --dest riibalanced.wbfs
+ cmd /C wit edit riibalanced.wbfs --name MarioKartRiibalanced
+else
+ wit mix RMCE01/ -B --dest riibalanced.wbfs
+ wit edit riibalanced.wbfs --name MarioKartRiibalanced
+fi
rm -rf RMCE01/
echo "The patch is now complete. The resulting file is 'riibalanced.wbfs'. Enjoy!"