mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
fix: load settings before pointers are initialised (#543)
This commit is contained in:
parent
5b10945bce
commit
11bc0bcc4a
@ -55,6 +55,10 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
LOG(INFO) << "Yim's Menu Initializing";
|
LOG(INFO) << "Yim's Menu Initializing";
|
||||||
|
|
||||||
|
g->load();
|
||||||
|
LOG(INFO) << "Settings Loaded.";
|
||||||
|
|
||||||
auto pointers_instance = std::make_unique<pointers>();
|
auto pointers_instance = std::make_unique<pointers>();
|
||||||
LOG(INFO) << "Pointers initialized.";
|
LOG(INFO) << "Pointers initialized.";
|
||||||
|
|
||||||
@ -67,9 +71,6 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID)
|
|||||||
auto hooking_instance = std::make_unique<hooking>();
|
auto hooking_instance = std::make_unique<hooking>();
|
||||||
LOG(INFO) << "Hooking initialized.";
|
LOG(INFO) << "Hooking initialized.";
|
||||||
|
|
||||||
g->load();
|
|
||||||
LOG(INFO) << "Settings Loaded.";
|
|
||||||
|
|
||||||
auto thread_pool_instance = std::make_unique<thread_pool>();
|
auto thread_pool_instance = std::make_unique<thread_pool>();
|
||||||
LOG(INFO) << "Thread pool initialized.";
|
LOG(INFO) << "Thread pool initialized.";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user