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

@ -49,6 +49,7 @@
#include "platform/platform.h"
#include "util/dprintf.h"
#include "util/env.h"
static HMODULE chusan_hook_mod;
static process_entry_t chusan_startup;
@ -84,7 +85,7 @@ static DWORD CALLBACK chusan_pre_startup(void)
/* Config load */
chusan_hook_config_load(&chusan_hook_cfg, L".\\segatools.ini");
chusan_hook_config_load(&chusan_hook_cfg, get_config_path());
/* Hook Win32 APIs */
@ -173,7 +174,7 @@ static DWORD CALLBACK chusan_pre_startup(void)
/* Initialize debug helpers */
spike_hook_init(L".\\segatools.ini");
spike_hook_init(get_config_path());
dprintf("--- End chusan_pre_startup ---\n");