Compare commits
10 commits
2d86534927
...
86663c6e5d
Author | SHA1 | Date | |
---|---|---|---|
86663c6e5d | |||
5cf0f194b6 | |||
65b4e65095 | |||
0e77a7b89c | |||
23862422fb | |||
524ed5747d | |||
f256923094 | |||
b4a78e144c | |||
758ff779a0 | |||
3779be838e |
3 changed files with 48 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,3 +17,4 @@
|
||||||
*.zip
|
*.zip
|
||||||
*.7z
|
*.7z
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
*.old
|
||||||
|
|
24
LICENSE
Normal file
24
LICENSE
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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,6 +84,7 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
if [[ $CYGWIN ]]; then
|
if [[ $CYGWIN ]]; then
|
||||||
|
chown Administrator:None .
|
||||||
powershell -command "Expand-Archive -Force .\wit.zip ."
|
powershell -command "Expand-Archive -Force .\wit.zip ."
|
||||||
cd wit-v*/
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 197108 ]]; then
|
if [[ $(id -u) == 197108 ]]; then
|
||||||
|
@ -92,13 +93,12 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
echo "ERROR: Please run Cygwin as Administrator to install wit."
|
||||||
exit 9
|
exit 9
|
||||||
fi
|
fi
|
||||||
|
export PATH="$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT"
|
||||||
else
|
else
|
||||||
tar -xvf wit.tar.gz
|
tar -xvf wit.tar.gz
|
||||||
cd wit-v*/
|
cd wit-v*/
|
||||||
if [[ $(id -u) == 0 ]]; then
|
if [[ $(id -u) == 0 ]]; then
|
||||||
chown Administrator:None .
|
|
||||||
./install.sh
|
./install.sh
|
||||||
export PATH='$PATH:/cygdrive/c/Program Files/Wiimm/WIT:/cygdrive/c/Program Files (x86)/Wiimm/WIT'
|
|
||||||
else
|
else
|
||||||
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
echo "You will now be prompted to enter your password for sudo in order for wit to install."
|
||||||
sudo ./install.sh
|
sudo ./install.sh
|
||||||
|
@ -117,6 +117,12 @@ if [[ ERROR -ne 0 ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check for cygwin --------------------------------------------------------------
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "cygwin" ]]; then
|
||||||
|
export CYGWIN='yes'
|
||||||
|
fi
|
||||||
|
|
||||||
# check for image ---------------------------------------------------------------
|
# check for image ---------------------------------------------------------------
|
||||||
|
|
||||||
if [[ ! $1 ]]; then
|
if [[ ! $1 ]]; then
|
||||||
|
@ -143,8 +149,14 @@ fi
|
||||||
|
|
||||||
# start extract -----------------------------------------------------------------
|
# start extract -----------------------------------------------------------------
|
||||||
|
|
||||||
wit extract $1 RMCE01
|
if [[ $CYGWIN ]]; then
|
||||||
ERROR="$?"
|
mkdir RMCE01
|
||||||
|
cmd /C "wit extract $1 RMCE01\DATA"
|
||||||
|
ERROR="$?"
|
||||||
|
else
|
||||||
|
wit extract $1 RMCE01
|
||||||
|
ERROR="$?"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ERROR -ne 0 ]]; then
|
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."
|
echo "ERROR: wit has returned non-zero exit code $ERROR. Please check that your disc image is authentic and valid."
|
||||||
|
@ -315,8 +327,13 @@ fi
|
||||||
|
|
||||||
# build -------------------------------------------------------------------------
|
# build -------------------------------------------------------------------------
|
||||||
|
|
||||||
wit mix RMCE01/ -B --dest riibalanced.wbfs
|
if [[ $CYGWIN ]]; then
|
||||||
wit edit riibalanced.wbfs --name MarioKartRiibalanced
|
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/
|
rm -rf RMCE01/
|
||||||
|
|
||||||
echo "The patch is now complete. The resulting file is 'riibalanced.wbfs'. Enjoy!"
|
echo "The patch is now complete. The resulting file is 'riibalanced.wbfs'. Enjoy!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue