Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool Initialized = false;
- int Count = 0;
- HRESULT __stdcall hkPresent(IDXGISwapChain* thisptr, UINT SyncInterval, UINT Flags)
- {
- if (!Initialized)
- {
- //Wait a little to init process, crashes otherwise dunno why
- if (Count < 1000)
- {
- Count++;
- return oPresent(thisptr, SyncInterval, Flags);
- }
- /*
- BLAH BLAH BLAH THE FIRST THEIME THE GUIDENCE THING RUNS
- */
- HWND hwndX = GetForegroundWindow();
- auto thing = GetActiveWindowTitle();
- SetWindowPos(hwndX, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
- Initialized = true;
- }
- /*
- BLAH BLAH BLAH NOW EVERY OTHER TIME THE FUNCTION RUNS IT WILL RUN THIS PART
- */
- if (m_Core.GetMiscSettings().FindBulletsEnabled)
- {
- m_Core.UpdateWeapon();
- }
- return oPresent(thisptr, SyncInterval, Flags);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement