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

This commit is contained in:
Quentin E. / iDeath 2022-10-30 19:16:17 +01:00 committed by GitHub
parent 3112ad4cfe
commit b65e0c7ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.";