Skip to content

Instantly share code, notes, and snippets.

@jasongraham
Created July 28, 2013 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongraham/6100336 to your computer and use it in GitHub Desktop.
Save jasongraham/6100336 to your computer and use it in GitHub Desktop.
Binary patch for Kerbal Space Program to turn off a code branch that apparently chokes on reading png files. http://forum.kerbalspaceprogram.com/showthread.php/33232-Linux-version-does-not-start-unless-some-files-are-removed/page2?s=2b58caf24df0aad901944f4a7e84ef5c
$ xxd -s +0x7cebc7 -l 1 KSP.x86_64
07cebc7: 01
$ echo "7cebc7: 00" | xxd -r - KSP.x86_64
$ xxd -s +0x7cebc7 -l 1 KSP.x86_64
07cebc7: 00
$ xxd -s +0x7cebcc -l 1 KSP.x86_64
07cebcc: 01
$ echo "7cebcc: 00" | xxd -r - KSP.x86_64
$ xxd -s +0x7cebcc -l 1 KSP.x86_64
07cebcc: 00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment