Created a define to not compile overlay.

This commit is contained in:
Nemirtingas 2019-08-14 15:09:57 +02:00
parent 40d7237ab0
commit d87760b78b
16 changed files with 36 additions and 34 deletions

View file

@ -1,5 +1,7 @@
#include "Base_Hook.h"
#ifndef NO_OVERLAY
#include <algorithm>
#include "Hook_Manager.h"
@ -38,4 +40,6 @@ void Base_Hook::HookFunc(std::pair<void**, void*> hook)
{
if( DetourAttach(hook.first, hook.second) == 0 )
_hooked_funcs.emplace_back(hook);
}
}
#endif//NO_OVERLAY