forked from TeamTofuShop/segatools
add changeable config path
This commit is contained in:
@ -44,6 +44,7 @@
|
||||
#include "platform/platform.h"
|
||||
|
||||
#include "util/dprintf.h"
|
||||
#include "util/env.h"
|
||||
|
||||
static HMODULE fgo_hook_mod;
|
||||
static process_entry_t fgo_startup;
|
||||
@ -69,7 +70,7 @@ static DWORD CALLBACK fgo_pre_startup(void)
|
||||
|
||||
/* Load config */
|
||||
|
||||
fgo_hook_config_load(&fgo_hook_cfg, L".\\segatools.ini");
|
||||
fgo_hook_config_load(&fgo_hook_cfg, get_config_path());
|
||||
|
||||
/* Hook Win32 APIs */
|
||||
|
||||
@ -147,7 +148,7 @@ static DWORD CALLBACK fgo_pre_startup(void)
|
||||
|
||||
/* Initialize debug helpers */
|
||||
|
||||
spike_hook_init(L".\\segatools.ini");
|
||||
spike_hook_init(get_config_path());
|
||||
|
||||
dprintf("--- End fgo_pre_startup ---\n");
|
||||
|
||||
|
Reference in New Issue
Block a user