Wed May 02, 2012 4:18 am
Fri Jan 11, 2013 4:52 pm
Mon Sep 26, 2016 2:34 am
Mon Apr 23, 2018 10:23 pm
#!/bin/sh
for f in 09Jog128SZA.bin 09Jog128TA0.bin 09Jog2.bin 09Touch2.bin; do
echo "Patching HMIManager.dll in $f"
perl -pi -e 's|\x78\x27\x0D\x8B\x90\x60\x0C\x62\x23\x63\xA9\x23\xB0\x33\x07\x8B\x23\x63\x10\xE2\x29\x23\x38\x23\x02\x8B\x1A\xD4|\x78\x27\x09\x00\x90\x60\x0C\x62\x23\x63\xA9\x23\xB0\x33\x09\x00\x23\x63\x10\xE2\x29\x23\x38\x23\x09\x00\x1A\xD4|g' $f || echo Patch failed on $f
done
echo Fixing checksums...
perl -pi -e 's|\x00\x00\x8e\x80\x2c\xdc\x05\x00\x51\xc4\xf3\x01|\x00\x00\x8e\x80\x2c\xdc\x05\x00\xb5\xc2\xf3\x01|g' 09Jog2.bin || echo Failed to fix checksum in 09Jog2.bin
perl -pi -e 's|\x00\x70\x4f\x80\xb4\xf4\x05\x00\xe6\x23\x11\x02|\x00\x70\x4f\x80\xb4\xf4\x05\x00\x4a\x22\x11\x02|g' 09Jog128TA0.bin || echo Failed to fix checksum in 09Jog128TA0.bin
perl -pi -e 's|\x00\x70\x4f\x80\xcc\x08\x06\x00\x04\x9d\x16\x02|\x00\x70\x4f\x80\xcc\x08\x06\x00\x68\x9d\x16\x02|g' 09Jog128SZA.bin || echo Failed to fix checksum in 09Jog128SZA.bin
perl -pi -e 's|\x00\x10\x90\x80\x24\x3c\x06\x00\xe0\x5b\x12\x02|\x00\x10\x90\x80\x24\x3c\x06\x00\x44\x5a\x12\x02|g' 09Touch2.bin || echo Failed to fix checksum in 09Touch2.bin