Skip to content

Commit

Permalink
create menu in init
Browse files Browse the repository at this point in the history
  • Loading branch information
etheaven committed Oct 11, 2017
1 parent ccfc19d commit 7f34caf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions csgo-base/src/init/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ bool init::setup()
g_pInputSystem = (IInputSystem *)util::EasyInterface(static_cast<std::string>(LIT(("inputsystem.dll"))).c_str(), static_cast<std::string>(LIT(("InputSystemVersion00"))).c_str());
printf("inputSystem: 0x%p\n", (void *)g_pInputSystem);

g_pMenu = new CMenu();

VMTClientMode.Initialise((DWORD *)g_pClientMode);
VMTClientMode.HookMethod((DWORD)hkCreateMove, 24);
if (!VMTClientMode.getInit())
Expand All @@ -95,6 +97,9 @@ bool init::detach()
{
if (VMTClientMode.getInit())
return false;

delete g_pMenu;

if (VMTPaintTraverse.getInit())
return false;
VMTClientMode.RestoreOriginal();
Expand Down

0 comments on commit 7f34caf

Please sign in to comment.