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

Don't run Present hook if test flag is set #20

Closed pongo1231 closed 2 years ago

pongo1231 commented 2 years ago

Scripthook checks if flags has bit 1 set, which in this case is DXGI_PRESENT_TEST. If so, it just calls the original Present. shv_presence The lack of this check caused issues in our own Present hook (as it is being called at a different point than normal with that flag set). This properly mimics Scripthook's behavior.