forked from TeamTofuShop/segatools
add changeable config path
This commit is contained in:
@ -38,6 +38,7 @@
|
||||
#include "unityhook/hook.h"
|
||||
|
||||
#include "util/dprintf.h"
|
||||
#include "util/env.h"
|
||||
|
||||
static HMODULE mu3_hook_mod;
|
||||
static process_entry_t mu3_startup;
|
||||
@ -51,7 +52,7 @@ static DWORD CALLBACK mu3_pre_startup(void)
|
||||
|
||||
/* Load config */
|
||||
|
||||
mu3_hook_config_load(&mu3_hook_cfg, L".\\segatools.ini");
|
||||
mu3_hook_config_load(&mu3_hook_cfg, get_config_path());
|
||||
|
||||
/* Hook Win32 APIs */
|
||||
|
||||
@ -114,7 +115,7 @@ static DWORD CALLBACK mu3_pre_startup(void)
|
||||
|
||||
/* Initialize debug helpers */
|
||||
|
||||
spike_hook_init(L".\\segatools.ini");
|
||||
spike_hook_init(get_config_path());
|
||||
|
||||
dprintf("--- End mu3_pre_startup ---\n");
|
||||
|
||||
|
Reference in New Issue
Block a user