We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1b2b5 commit 309870dCopy full SHA for 309870d
src/pl/Hook.cpp
@@ -77,6 +77,13 @@ static std::mutex hooksMutex{};
77
78
int pl_hook(FuncPtr target, FuncPtr detour, FuncPtr *originalFunc,
79
Priority priority) {
80
+
81
+ static bool initialized = false;
82
+ if (!initialized) {
83
+ GlossInit(true);
84
+ initialized = true;
85
+ }
86
87
std::lock_guard lock(hooksMutex);
88
auto it = getHooks().find(target);
89
if (it != getHooks().end()) {
0 commit comments