Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. bool Initialized = false;
  2. int Count = 0;
  3.  
  4. HRESULT __stdcall hkPresent(IDXGISwapChain* thisptr, UINT SyncInterval, UINT Flags)
  5. {
  6.     if (!Initialized)
  7.     {
  8.         //Wait a little to init process, crashes otherwise dunno why
  9.         if (Count < 1000)
  10.         {
  11.             Count++;
  12.             return oPresent(thisptr, SyncInterval, Flags);
  13.         }
  14.         /*
  15.  
  16.         BLAH BLAH BLAH THE FIRST THEIME THE GUIDENCE THING RUNS
  17.  
  18.         */
  19.         HWND hwndX = GetForegroundWindow();
  20.         auto thing = GetActiveWindowTitle();
  21.         SetWindowPos(hwndX, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
  22.         Initialized = true;
  23.     }
  24.  
  25.     /*
  26.  
  27.     BLAH BLAH BLAH NOW EVERY OTHER TIME THE FUNCTION RUNS IT WILL RUN THIS PART
  28.  
  29.     */
  30.     if (m_Core.GetMiscSettings().FindBulletsEnabled)
  31.     {
  32.         m_Core.UpdateWeapon();
  33.     }
  34.  
  35.     return oPresent(thisptr, SyncInterval, Flags);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement