From 23f9e62ef1905bfdde3df5d5e221f1a8a82cab27 Mon Sep 17 00:00:00 2001 From: Lucas Cota Date: Thu, 2 Jan 2025 23:36:13 -0300 Subject: [PATCH] fix: init logger --- NoHotkeysFlagDisabler/src/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NoHotkeysFlagDisabler/src/main.cpp b/NoHotkeysFlagDisabler/src/main.cpp index 59d5496..9b66f29 100644 --- a/NoHotkeysFlagDisabler/src/main.cpp +++ b/NoHotkeysFlagDisabler/src/main.cpp @@ -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;