mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Overlay & Hook cleanup.
This commit is contained in:
parent
44d583ee7d
commit
04847abeb7
6 changed files with 3 additions and 170 deletions
|
|
@ -98,16 +98,6 @@ void OpenGL_Hook::prepareForOverlay(HDC hDC)
|
|||
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Initialization functions
|
||||
//BOOL WINAPI OpenGL_Hook::MywglMakeCurrent(HDC hDC, HGLRC hGLRC)
|
||||
//{
|
||||
// auto res = hook->wglMakeCurrent(hDC, hGLRC);
|
||||
// hook->hook_ogl();
|
||||
// return res;
|
||||
//}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
BOOL WINAPI OpenGL_Hook::MywglSwapBuffers(HDC hDC)
|
||||
{
|
||||
OpenGL_Hook::Inst()->prepareForOverlay(hDC);
|
||||
|
|
@ -120,16 +110,6 @@ OpenGL_Hook::OpenGL_Hook():
|
|||
wglSwapBuffers(nullptr)
|
||||
{
|
||||
_library = LoadLibrary(DLL_NAME);
|
||||
// Hook to wglMakeCurrent so we know when it gets called.
|
||||
// If its called, then OpenGL will be used to render the overlay.
|
||||
//wglMakeCurrent = (decltype(wglMakeCurrent))GetProcAddress(_dll, "wglMakeCurrent");
|
||||
//wglSwapBuffers = (decltype(wglSwapBuffers))GetProcAddress(_dll, "wglSwapBuffers");
|
||||
//
|
||||
//BeginHook();
|
||||
//HookFuncs(
|
||||
// std::make_pair<void**, void*>(&(PVOID&)wglMakeCurrent, &OpenGL_Hook::MywglMakeCurrent)
|
||||
//);
|
||||
//EndHook();
|
||||
}
|
||||
|
||||
OpenGL_Hook::~OpenGL_Hook()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue