Patch:Nojoy


 * (adapted from https://gist.github.com/iamgreaser/5651429)

Here, have some patches.

These are patches to disable joystick support for when you'd rather have a joy-to-key mapper than the terribleness that is 99% of games with joystick support not being able to handle a 28-axis controller properly.

You must tick the "Don't use DirectInput for joystick" box for this to actually work, as it doesn't touch those. Also, these are for the latest (as of writing) full versions. The general procedure is: For instance, this is one of the relevant places in TH07's disassembly:
 * Look for all instances of joyGetPosEx - there should be exactly 3.
 * Make the code pretend that it always returns a nonzero value in all 3 cases.

If on the other hand it's a jnz or something that doesn't include zero, you'll need to find what byte to use for a force jump. Said one other case I have is for a longer-than-usual conditional jump, which involves changing 0F 85 to 90 E9. Enjoy! -- GreaseMonkey