forked from TeamTofuShop/segatools
Make clock hook configurable
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
|
||||
#include "hook/process.h"
|
||||
|
||||
#include "hooklib/clock.h"
|
||||
#include "hooklib/spike.h"
|
||||
|
||||
#include "platform/clock.h"
|
||||
#include "platform/config.h"
|
||||
#include "platform/nusec.h"
|
||||
|
||||
@ -17,17 +17,17 @@ static process_entry_t app_startup;
|
||||
|
||||
static DWORD CALLBACK app_pre_startup(void)
|
||||
{
|
||||
struct nusec_config nusec_cfg;
|
||||
struct clock_config clock_cfg;
|
||||
struct ds_config ds_cfg;
|
||||
struct nusec_config nusec_cfg;
|
||||
|
||||
dprintf("--- Begin %s ---\n", __func__);
|
||||
|
||||
nusec_config_load(&nusec_cfg, L".\\segatools.ini");
|
||||
clock_config_load(&clock_cfg, L".\\segatools.ini");
|
||||
ds_config_load(&ds_cfg, L".\\segatools.ini");
|
||||
nusec_config_load(&nusec_cfg, L".\\segatools.ini");
|
||||
|
||||
// TODO make use of clock read hook configurable
|
||||
clock_read_hook_init();
|
||||
clock_write_hook_init();
|
||||
clock_hook_init(&clock_cfg);
|
||||
nusec_hook_init(&nusec_cfg, "SSSS", "AAV0");
|
||||
ds_hook_init(&ds_cfg);
|
||||
|
||||
|
Reference in New Issue
Block a user