fix: load settings before pointers are initialised (#543)
This commit is contained in:
parent
3112ad4cfe
commit
b65e0c7ae5
@ -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.";
|
||||
|
||||
|
Reference in New Issue
Block a user