board/sg-reader.c: Configurate sg_reader

This commit is contained in:
Tau
2019-06-03 22:28:44 -04:00
parent 924c1d8fdb
commit e06be9fc7b
9 changed files with 34 additions and 6 deletions

View File

@ -2,6 +2,8 @@
#include "amex/config.h"
#include "board/config.h"
#include "idzhook/config.h"
#include "platform/config.h"
@ -15,4 +17,5 @@ void idz_hook_config_load(
nu_config_load(&cfg->nu, filename);
amex_config_load(&cfg->amex, filename);
aime_config_load(&cfg->aime, filename);
}

View File

@ -4,11 +4,14 @@
#include "amex/config.h"
#include "board/config.h"
#include "platform/config.h"
struct idz_hook_config {
struct nu_config nu;
struct amex_config amex;
struct aime_config aime;
};
void idz_hook_config_load(

View File

@ -43,12 +43,12 @@ static DWORD CALLBACK idz_pre_startup(void)
platform_hook_init_nu(&idz_hook_cfg.nu, "SDDF", "AAV2", idz_hook_mod);
amex_hook_init(&idz_hook_cfg.amex);
sg_reader_hook_init(10);
if (idz_hook_cfg.amex.jvs.enable) {
idz_jvs_init();
}
sg_reader_hook_init(&idz_hook_cfg.aime, 10);
/* Initialize debug helpers */
spike_hook_init("idzspike.txt");