forked from TeamTofuShop/segatools
add changeable config path
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
#include "platform/platform.h"
|
||||
|
||||
#include "util/dprintf.h"
|
||||
#include "util/env.h"
|
||||
|
||||
static HMODULE tokyo_hook_mod;
|
||||
static process_entry_t tokyo_startup;
|
||||
@ -39,7 +40,7 @@ static DWORD CALLBACK tokyo_pre_startup(void)
|
||||
|
||||
/* Load config */
|
||||
|
||||
tokyo_hook_config_load(&tokyo_hook_cfg, L".\\segatools.ini");
|
||||
tokyo_hook_config_load(&tokyo_hook_cfg, get_config_path());
|
||||
|
||||
/* Hook Win32 APIs */
|
||||
|
||||
@ -80,7 +81,7 @@ static DWORD CALLBACK tokyo_pre_startup(void)
|
||||
|
||||
/* Initialize debug helpers */
|
||||
|
||||
spike_hook_init(L".\\segatools.ini");
|
||||
spike_hook_init(get_config_path());
|
||||
|
||||
dprintf("--- End tokyo_pre_startup ---\n");
|
||||
|
||||
|
Reference in New Issue
Block a user