forked from TeamTofuShop/segatools
add changeable config path
This commit is contained in:
@ -40,6 +40,7 @@
|
||||
|
||||
#include "util/dprintf.h"
|
||||
#include "util/lib.h"
|
||||
#include "util/env.h"
|
||||
|
||||
static HMODULE idz_hook_mod;
|
||||
static process_entry_t idz_startup;
|
||||
@ -55,7 +56,7 @@ static DWORD CALLBACK idz_pre_startup(void)
|
||||
|
||||
/* Config load */
|
||||
|
||||
idz_hook_config_load(&idz_hook_cfg, L".\\segatools.ini");
|
||||
idz_hook_config_load(&idz_hook_cfg, get_config_path());
|
||||
|
||||
module_path = module_file_name(NULL);
|
||||
|
||||
@ -136,7 +137,7 @@ static DWORD CALLBACK idz_pre_startup(void)
|
||||
|
||||
/* Initialize debug helpers */
|
||||
|
||||
spike_hook_init(L".\\segatools.ini");
|
||||
spike_hook_init(get_config_path());
|
||||
|
||||
dprintf("--- End idz_pre_startup ---\n");
|
||||
|
||||
|
Reference in New Issue
Block a user