Compare commits
No commits in common. "86663c6e5d13a7f065423fc9eeb1eaecd3b111c0" and "2d86534927ca39c7241ce49135ecde62ff81fcd1" have entirely different histories.
86663c6e5d
...
2d86534927
3 changed files with 6 additions and 48 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,4 +17,3 @@
|
|||
*.zip
|
||||
*.7z
|
||||
*.tar.gz
|
||||
*.old
|
||||
|
|
24
LICENSE
24
LICENSE
|
@ -1,24 +0,0 @@
|
|||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <http://unlicense.org/>
|
29
patch_iso.sh
29
patch_iso.sh
|
@ -84,7 +84,6 @@ if [[ ERROR -ne 0 ]]; then
|
|||
exit 2;
|
||||
fi
|
||||
if [[ $CYGWIN ]]; then
|
||||
chown Administrator:None .
|
||||
powershell -command "Expand-Archive -Force .\wit.zip ."
|
||||
cd wit-v*/
|
||||
if [[ $(id -u) == 197108 ]]; then
|
||||
|
@ -93,12 +92,13 @@ if [[ ERROR -ne 0 ]]; then
|
|||
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
||||
exit 9
|
||||
fi
|
||||
export PATH="$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT"
|
||||
else
|
||||
tar -xvf wit.tar.gz
|
||||
cd wit-v*/
|
||||
if [[ $(id -u) == 0 ]]; then
|
||||
chown Administrator:None .
|
||||
./install.sh
|
||||
export PATH='$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT'
|
||||
else
|
||||
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
||||
sudo ./install.sh
|
||||
|
@ -117,12 +117,6 @@ if [[ ERROR -ne 0 ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# check for cygwin --------------------------------------------------------------
|
||||
|
||||
if [[ "$OSTYPE" == "cygwin" ]]; then
|
||||
export CYGWIN='yes'
|
||||
fi
|
||||
|
||||
# check for image ---------------------------------------------------------------
|
||||
|
||||
if [[ ! $1 ]]; then
|
||||
|
@ -149,14 +143,8 @@ fi
|
|||
|
||||
# start extract -----------------------------------------------------------------
|
||||
|
||||
if [[ $CYGWIN ]]; then
|
||||
mkdir RMCE01
|
||||
cmd /C "wit extract $1 RMCE01\DATA"
|
||||
ERROR="$?"
|
||||
else
|
||||
wit extract $1 RMCE01
|
||||
ERROR="$?"
|
||||
fi
|
||||
wit extract $1 RMCE01
|
||||
ERROR="$?"
|
||||
|
||||
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."
|
||||
|
@ -327,13 +315,8 @@ fi
|
|||
|
||||
# build -------------------------------------------------------------------------
|
||||
|
||||
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
|
||||
wit mix RMCE01/ -B --dest riibalanced.wbfs
|
||||
wit edit riibalanced.wbfs --name MarioKartRiibalanced
|
||||
rm -rf RMCE01/
|
||||
|
||||
echo "The patch is now complete. The resulting file is 'riibalanced.wbfs'. Enjoy!"
|
||||
|
|
Loading…
Add table
Reference in a new issue