Added preprocessor exclusion for linux

This commit is contained in:
Nemirtingas 2019-08-14 14:55:31 +02:00
parent f9ee123a05
commit 56b4e6a7c7
14 changed files with 127 additions and 22 deletions

View file

@ -1,4 +1,7 @@
#include "../dll/base.h"
#ifdef STEAM_WIN32
#include "OpenGL_Hook.h"
#include "Hook_Manager.h"
@ -56,6 +59,7 @@ void OpenGL_Hook::resetRenderState()
}
}
// Try to make this function and overlay's proc as short as possible or it might affect game's fps.
void OpenGL_Hook::prepareForOverlay(HDC hDC)
{
HWND hWnd = WindowFromDC(hDC);
@ -146,4 +150,6 @@ void OpenGL_Hook::Create()
// Register the hook to the Hook Manager
Hook_Manager::Inst().AddHook(hook);
}
}
}
#endif