fixed readme and script comments

This commit is contained in:
Bryson Steck 2022-06-04 16:45:51 -06:00
parent c6bcec4bd3
commit 87b36468dc
2 changed files with 13 additions and 11 deletions

View file

@ -10,11 +10,13 @@ You need three things before starting:
* Linux/BSD with `bash` installed * Linux/BSD with `bash` installed
* macOS * macOS
* ~~Windows with [Cygwin](https://www.cygwin.com/)~~ (Not Implemented) or [WSL](https://docs.microsoft.com/en-us/windows/wsl/install) * ~~Windows with [Cygwin](https://www.cygwin.com/)~~ (Not Implemented) or [WSL](https://docs.microsoft.com/en-us/windows/wsl/install)
1. A Mario Kart Wii image in ISO, WBFS, WDF, WIA, CISO, WBI, or GCZ format. (Obtained legally, of course) 2. A Mario Kart Wii image in ISO, WBFS, WDF, WIA, CISO, WBI, or GCZ format. (Obtained legally, of course)
1. The Riibalanced Patch Archive (This can be downloaded via the Riibalanced Discord Server) 3. The Riibalanced Patch Archive (This can be downloaded via the Riibalanced Discord Server)
After that, run the following command: After that, clone the repository and run the script:
``` ```
git clone https://github.com/brysonsteck/riibalanced-patcher.git
cd riibalanced-patcher
./patch_iso.sh ./patch_iso.sh
``` ```
The script will guide you on what you need to do in order for the pather to work correctly. The script will guide you on what you need to do in order for the pather to work correctly.

View file

@ -27,7 +27,7 @@ if [[ ! -d "./V5/" ]]; then
exit 3; exit 3;
fi fi
# check if correct programs are installed ---------------------------------------- # check if correct programs are installed ---------------------------------------
# curl ------ # curl ------
type curl type curl
@ -93,7 +93,7 @@ if [[ ERROR -ne 0 ]]; then
fi fi
fi fi
# check for image ------------------------------------------------ # check for image ---------------------------------------------------------------
if [[ ! $1 ]]; then if [[ ! $1 ]]; then
echo "ERROR: Please start this script with the path to the Mario Kart Wii ISO image to start the patch." echo "ERROR: Please start this script with the path to the Mario Kart Wii ISO image to start the patch."
@ -101,7 +101,7 @@ if [[ ! $1 ]]; then
exit 0 exit 0
fi fi
# check for previous image extraction ----------------------------------- # check for previous image extraction -------------------------------------------
if [[ -d "./RMCE01/" ]]; then if [[ -d "./RMCE01/" ]]; then
echo "The output directory for the image extraction exists (./RMCE01) and will be DELETED to get a fresh extraction." echo "The output directory for the image extraction exists (./RMCE01) and will be DELETED to get a fresh extraction."
@ -110,7 +110,7 @@ if [[ -d "./RMCE01/" ]]; then
rm -rf ./RMCE01 rm -rf ./RMCE01
fi fi
# start extract ----------------------------------------------------------- # start extract -----------------------------------------------------------------
wit extract $1 RMCE01 wit extract $1 RMCE01
ERROR="$?" ERROR="$?"
@ -120,9 +120,9 @@ if [[ ERROR -ne 0 ]]; then
exit $ERROR exit $ERROR
fi fi
# start patch ------------------------------------------------------------- # start patch -------------------------------------------------------------------
echo "Extraction seems to be complete. Starting patch." echo "Extraction seems to be complete. Patching..."
#set -x #set -x
cp V5/Riibalanced/Core/StaticRU.rel RMCE01/DATA/files/rel/StaticR.rel cp V5/Riibalanced/Core/StaticRU.rel RMCE01/DATA/files/rel/StaticR.rel
@ -267,7 +267,7 @@ cp V5/Riibalanced/Music/STRM_N_FACTORY_N.brstm RMCE01/DATA/files/sound/strm/
echo echo
echo "Patch complete. wit will now compile the resulting disc image." echo "Patch complete. wit will now compile the resulting disc image."
# overwrite check ------------------------------------------------------ # overwrite check ---------------------------------------------------------------
if [[ -f "./riibalanced.wbfs" ]]; then if [[ -f "./riibalanced.wbfs" ]]; then
echo "The file 'riibalanced.wbfs' exists in this directory." echo "The file 'riibalanced.wbfs' exists in this directory."
@ -282,7 +282,7 @@ if [[ -f "./riibalanced.wbfs" ]]; then
done done
fi fi
# build ---------------------------------------------------------------- # build -------------------------------------------------------------------------
wit mix RMCE01/ -B --dest riibalanced.wbfs wit mix RMCE01/ -B --dest riibalanced.wbfs
wit edit riibalanced.wbfs --name MarioKartRiibalanced wit edit riibalanced.wbfs --name MarioKartRiibalanced