Fixed option loading, thanks @Hay1tsme, close #16

This commit is contained in:
2024-06-09 00:50:54 +02:00
parent 7aa996193c
commit b0f307f427
6 changed files with 63 additions and 15 deletions

View File

@ -55,6 +55,12 @@ static DWORD CALLBACK cm_pre_startup(void)
goto fail;
}
hr = cm_dll_init(&cm_hook_cfg.dll, cm_hook_mod);
if (FAILED(hr)) {
goto fail;
}
hr = sg_reader_hook_init(&cm_hook_cfg.aime, 1, 1, cm_hook_mod);
if (FAILED(hr)) {
@ -67,12 +73,6 @@ static DWORD CALLBACK cm_pre_startup(void)
goto fail;
}
hr = cm_dll_init(&cm_hook_cfg.dll, cm_hook_mod);
if (FAILED(hr)) {
goto fail;
}
hr = cm_io4_hook_init(&cm_hook_cfg.io4);
if (FAILED(hr)) {