logoalt Hacker News

neonz80today at 2:10 PM2 repliesview on HN

Why an extra DLL instead of just patching the game executable? With some luck it is a one byte patch (from push 0 to push 4).


Replies

seritoolstoday at 2:29 PM

Because I felt like it :) Also works for multiple versions/patchlevels.

But yeah, with the info provided it should be patchable. It's a `push esi` though, where esi has to stay 0 for a few further usages, so it's a bit more than a one-byte patch. It also wouldn't fully resolve the OOB write in the rare case where you _do_ have 9+ game controllers connected.

qingcharlestoday at 4:04 PM

I feel like this is a cleaner solution. As a user you don't have to faff around running a whole application just to change 3 bytes. Just drop this file in and go.