| 6 |
|
|
| 7 |
|
echo "Welcome to the Oni 2 (Angel Studios) Layout Patch Tool." |
| 8 |
|
|
| 9 |
< |
if [ -z $1 ]; then |
| 9 |
> |
if [ -z "$1" ]; then |
| 10 |
|
echo "You need to pass me the path to your ISO of Oni 2. Exiting." |
| 11 |
|
exit |
| 12 |
|
fi |
| 44 |
|
exit |
| 45 |
|
elif [ "$the_answer" == "1" ]; then |
| 46 |
|
echo "Creating patched version..." |
| 47 |
< |
./xdelta3mac.exe -ds "$1" patchFromVanTo63.x3d ./oni2dev_ps2_first63layouts.iso |
| 47 |
> |
./xdelta3mac.exe -ds "$1" patchFromVanTo63.xd3 ./oni2dev_ps2_first63layouts.iso |
| 48 |
|
echo "Verifying checksum...." |
| 49 |
|
MD5_OUTPUT=$(md5 ./oni2dev_ps2_first63layouts.iso) |
| 50 |
|
MD5_OUTPUT=${MD5_OUTPUT#*= } |
| 54 |
|
fi |
| 55 |
|
elif [ "$the_answer" == "2" ]; then |
| 56 |
|
echo "Creating patched version..." |
| 57 |
< |
./xdelta3mac.exe -ds "$1" patchFromVanTo32.x3d ./oni2dev_ps2_last32layouts.iso |
| 57 |
> |
./xdelta3mac.exe -ds "$1" patchFromVanTo32.xd3 ./oni2dev_ps2_last32layouts.iso |
| 58 |
|
echo "Verifying checksum...." |
| 59 |
|
MD5_OUTPUT=$(md5 ./oni2dev_ps2_last32layouts.iso) |
| 60 |
|
MD5_OUTPUT=${MD5_OUTPUT#*= } |