Mon Apr 23, 2018 10:33 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
Tue Jul 10, 2018 3:20 pm
Mon Mar 30, 2020 6:17 pm