mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Added error handling when hook fails
This commit is contained in:
parent
71d3e301c2
commit
d06fbba104
12 changed files with 122 additions and 43 deletions
|
|
@ -13,6 +13,8 @@ public:
|
|||
//using wglMakeCurrent_t = BOOL(WINAPI*)(HDC, HGLRC);
|
||||
|
||||
private:
|
||||
static OpenGL_Hook* _inst;
|
||||
|
||||
// Variables
|
||||
bool initialized;
|
||||
|
||||
|
|
@ -20,7 +22,6 @@ private:
|
|||
OpenGL_Hook();
|
||||
virtual ~OpenGL_Hook();
|
||||
|
||||
void start_hook();
|
||||
void resetRenderState();
|
||||
void prepareForOverlay(HDC hDC);
|
||||
|
||||
|
|
@ -35,7 +36,8 @@ private:
|
|||
//wglMakeCurrent_t wglMakeCurrent;
|
||||
|
||||
public:
|
||||
static void Create(); // Initialize OGL Hook.
|
||||
bool start_hook();
|
||||
inline static OpenGL_Hook* Inst();
|
||||
};
|
||||
|
||||
#endif//NO_OVERLAY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue