illnyang / nvlax

Future-proof NvENC & NvFBC patcher (Linux/Windows)
GNU General Public License v3.0
159 stars 18 forks source link

Fix nvfbc patch failing on driver version 555 (closes #24) #25

Open TheCodex6824 opened 1 week ago

TheCodex6824 commented 1 week ago

The jump instruction that the NvFBC patch was looking for changed quite a bit in 555: it moved and is now an entirely different opcode. This patch is able to find it. I also tweaked the patching process a bit to be able to support multiple different versions of the library, since the new patch won't work on older versions. I tested* on 535, 545, 550, and 555, and all seem to work for me with these changes.

If older versions aren't a concern, then a lot of these changes could be removed and the offset / size information can just be updated instead.

[*] The trunk branch doesn't compile for me so I have to also apply some of the other patches in pull request for testing. Please let me know if I messed up in the cherry-pick for this PR. My original branch that fully works is here.