Skip to content

Commit

Permalink
fix: init logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Braasileiro committed Jan 3, 2025
1 parent 88460e7 commit 23f9e62
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion NoHotkeysFlagDisabler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,20 @@ void Detach()
}
}

void Init()
{
Logger::Init();

Attach();
}

// Entry
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
Attach();
Init();
break;
case DLL_THREAD_ATTACH:
break;
Expand Down

0 comments on commit 23f9e62

Please sign in to comment.