--- oni2aslpt/o2aslpt.sh 2018/02/19 14:52:05 1104 +++ oni2aslpt/o2aslpt.sh 2018/02/19 14:58:08 1106 @@ -6,7 +6,7 @@ MD5_LAST32="c5e46781d21cd4414e92d9150251 echo "Welcome to the Oni 2 (Angel Studios) Layout Patch Tool." -if [ -z $1 ]; then +if [ -z "$1" ]; then echo "You need to pass me the path to your ISO of Oni 2. Exiting." exit fi @@ -44,7 +44,7 @@ if [ -z "$the_answer" ]; then exit elif [ "$the_answer" == "1" ]; then echo "Creating patched version..." - ./xdelta3mac.exe -ds "$1" patchFromVanTo63.x3d ./oni2dev_ps2_first63layouts.iso + ./xdelta3mac.exe -ds "$1" patchFromVanTo63.xd3 ./oni2dev_ps2_first63layouts.iso echo "Verifying checksum...." MD5_OUTPUT=$(md5 ./oni2dev_ps2_first63layouts.iso) MD5_OUTPUT=${MD5_OUTPUT#*= } @@ -54,7 +54,7 @@ elif [ "$the_answer" == "1" ]; then fi elif [ "$the_answer" == "2" ]; then echo "Creating patched version..." - ./xdelta3mac.exe -ds "$1" patchFromVanTo32.x3d ./oni2dev_ps2_last32layouts.iso + ./xdelta3mac.exe -ds "$1" patchFromVanTo32.xd3 ./oni2dev_ps2_last32layouts.iso echo "Verifying checksum...." MD5_OUTPUT=$(md5 ./oni2dev_ps2_last32layouts.iso) MD5_OUTPUT=${MD5_OUTPUT#*= }