Advertisement
Tiokun

Untitled

Aug 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #ifdef _DEBUG
  2.     if (is_unhookable)
  3.     {
  4.         bool is_active = true;
  5.         input_system::register_hotkey(VK_DELETE, [&is_active]()
  6.         {
  7.             if (render::menu::is_visible())
  8.                 render::switch_hwnd();
  9.  
  10.             is_active = false;
  11.         });
  12.  
  13.         while (is_active)
  14.             Sleep(500);
  15.  
  16.         LI_FN(FreeLibraryAndExitThread)(static_cast<HMODULE>(base), 1);
  17.     }
  18. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement