SaneEngineer / OpenVHook

Open source script hook loader implementation for Grand Theft Auto V
GNU General Public License v2.0
47 stars 7 forks source link

Update scrThreadId pattern #22

Closed pongo1231 closed 2 years ago

pongo1231 commented 2 years ago

Fixes the scrThreadId pattern for the Steam version. Instead of fetching scrThreadId directly, this is scanning for a pattern with a reference to a global variable right above and fetching the scrThreadId instance using an offset. I have tested it with Steam 2628 and EGS 2628/2612, couldn't test 2545 as it crashes even with an unmodified mod build.