fix: load settings before pointers are initialised (#543)

This commit is contained in:
Quentin E. / iDeath authored and GitHub committed 2022-10-30 19:16:17 +01:00
1 parent 5b10945bce
commit 11bc0bcc4a
1 file changed
+4 -3
+4 -3
View File
@@ -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<pointers>();
LOG(INFO) << "Pointers initialized.";
@@ -67,9 +71,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
auto hooking_instance = std::make_unique<hooking>();
LOG(INFO) << "Hooking initialized.";
g->load();
LOG(INFO) << "Settings Loaded.";
auto thread_pool_instance = std::make_unique<thread_pool>();
LOG(INFO) << "Thread pool initialized.";