add changeable config path

This commit is contained in:
2024-12-16 11:09:38 +08:00
parent 6d8ffb46ef
commit 11556a1332
37 changed files with 134 additions and 63 deletions

View File

@ -23,6 +23,7 @@
#include "platform/platform.h"
#include "util/dprintf.h"
#include "util/env.h"
static HMODULE cxb_hook_mod;
static process_entry_t cxb_startup;
@ -58,7 +59,7 @@ static DWORD CALLBACK cxb_pre_startup(void)
/* Config load */
cxb_hook_config_load(&cxb_hook_cfg, L".\\segatools.ini");
cxb_hook_config_load(&cxb_hook_cfg, get_config_path());
/* Hook Win32 APIs */
@ -110,7 +111,7 @@ static DWORD CALLBACK cxb_pre_startup(void)
/* Initialize debug helpers */
spike_hook_init(L".\\segatools.ini");
spike_hook_init(get_config_path());
dprintf("--- End cxb_pre_startup ---\n");