2
0
mirror of https://github.com/Thracky/GlosSI.git synced 2024-11-17 03:26:02 +00:00
Commit Graph

9 Commits

Author SHA1 Message Date
Peter Repukat
d5e4b7b9c7 move hooking stuff to common header 2018-03-18 17:47:26 +01:00
Peter Repukat
9f61d9fb3f begin rewrite 2018-03-18 17:47:26 +01:00
Peter Repukat
e3a49db9a9 Revert "EnforceBindingDLL: EXPERIMENTAL: Disable LizardMode"
This reverts commit 30795a1ae0.
2018-01-21 18:12:18 +01:00
Peter Repukat
30795a1ae0 EnforceBindingDLL: EXPERIMENTAL: Disable LizardMode 2018-01-21 17:31:11 +01:00
Peter Repukat
38ba58ffa9 EnforceBindings: Generalized hooking function
Now I shouldn't have to patch GloSC as often...

 * In the function we want to hook the appID of the Chord bindings get referenced,
  it takes 3 arguments (we can get that from the function prolog)
  and it is the only one that does both. (in steamclient.dll)
  
  We search for the constant appID of SteamChard bindings
  move a bit upward and search for the correct function prolog

The function-prolog of the hooked function, get replaced with a jump to our hook
Our hook, then executed the missing function prolog,
patches the second function argument on the stack
and jumps back to let Steam do the rest for us :)
2017-09-24 23:20:43 +02:00
Peter Repukat
e77529137d Include new hook for newer Steam versions 2017-09-24 19:40:04 +02:00
Peter Repukat
105287ecd4 EnforceDLL: Add second hook for newer Steam versions 2017-05-31 15:54:58 +02:00
Peter Repukat
3dbd4de39a fix: SteamTarget not beeing updated 2016-11-26 23:12:31 +01:00
Peter Repukat
7947d6faac Enforce non desktop bindings:
done by mid function hooking a function in steamclient.dll
the function appears to be setting the appId of the new controller bindings

inject/hook right after the target launched
switch focus -> binding gets changed to shortcut bindings -> hook function grabs appid
hook function replaces desktop-config appid with the one grabbed everytime steam tries to active desktop-config
glosc_gamelauncher unloads dll when the target closes; unloading dll patches steamclient.dll back to original
2016-11-26 22:57:32 +01:00