platform: Re-fuse Nu and ALLS platforms

There's basically no difference at the platform level except for
the addition of the ALLS PCBID hook, which is harmless on Nu.
This commit is contained in:
Tau
2019-11-03 09:52:33 -05:00
parent 06df306c52
commit 3d6669dff1
16 changed files with 31 additions and 116 deletions

View File

@ -29,7 +29,7 @@ void chuni_hook_config_load(
memset(cfg, 0, sizeof(*cfg));
nu_config_load(&cfg->nu, filename);
platform_config_load(&cfg->platform, filename);
amex_config_load(&cfg->amex, filename);
gfx_config_load(&cfg->gfx, filename);
slider_config_load(&cfg->slider, filename);

View File

@ -14,7 +14,7 @@ struct slider_config {
};
struct chuni_hook_config {
struct nu_config nu;
struct platform_config platform;
struct amex_config amex;
struct gfx_config gfx;
struct slider_config slider;

View File

@ -52,7 +52,12 @@ static DWORD CALLBACK chuni_pre_startup(void)
/* Initialize emulation hooks */
platform_hook_init_nu(&chuni_hook_cfg.nu, "SDBT", "AAV1", chuni_hook_mod);
platform_hook_init(
&chuni_hook_cfg.platform,
"SDBT",
"AAV1",
chuni_hook_mod);
amex_hook_init(&chuni_hook_cfg.amex);
if (chuni_hook_cfg.amex.jvs.enable) {