From b65e0c7ae522951d0391d392f1a573ea4913782b Mon Sep 17 00:00:00 2001 From: "Quentin E. / iDeath" Date: Sun, 30 Oct 2022 19:16:17 +0100 Subject: [PATCH] fix: load settings before pointers are initialised (#543) --- BigBaseV2/src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BigBaseV2/src/main.cpp b/BigBaseV2/src/main.cpp index 28cfcc0c..1aa25fda 100644 --- a/BigBaseV2/src/main.cpp +++ b/BigBaseV2/src/main.cpp @@ -55,6 +55,10 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) try { LOG(INFO) << "Yim's Menu Initializing"; + + g->load(); + LOG(INFO) << "Settings Loaded."; + auto pointers_instance = std::make_unique(); LOG(INFO) << "Pointers initialized."; @@ -67,9 +71,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) auto hooking_instance = std::make_unique(); LOG(INFO) << "Hooking initialized."; - g->load(); - LOG(INFO) << "Settings Loaded."; - auto thread_pool_instance = std::make_unique(); LOG(INFO) << "Thread pool initialized.";