hooklib/gfx.c: Wire up gfx config

This commit is contained in:
Tau
2019-10-19 17:04:34 -04:00
parent 871b82a8ad
commit 7c721aa1f8
5 changed files with 22 additions and 14 deletions

View File

@ -7,6 +7,8 @@
#include "chunihook/config.h"
#include "hooklib/config.h"
#include "platform/config.h"
void chuni_hook_config_load(
@ -20,4 +22,5 @@ void chuni_hook_config_load(
nu_config_load(&cfg->nu, filename);
amex_config_load(&cfg->amex, filename);
gfx_config_load(&cfg->gfx, filename);
}

View File

@ -4,11 +4,14 @@
#include "amex/config.h"
#include "hooklib/config.h"
#include "platform/config.h"
struct chuni_hook_config {
struct nu_config nu;
struct amex_config amex;
struct gfx_config gfx;
};
void chuni_hook_config_load(

View File

@ -47,7 +47,7 @@ static DWORD CALLBACK chuni_pre_startup(void)
/* Hook Win32 APIs */
gfx_hook_init();
gfx_hook_init(&chuni_hook_cfg.gfx);
serial_hook_init();
/* Initialize emulation hooks */
@ -64,7 +64,6 @@ static DWORD CALLBACK chuni_pre_startup(void)
/* Initialize debug helpers */
spike_hook_init(L".\\segatools.ini");
gfx_set_windowed();
dprintf("--- End chuni_pre_startup ---\n");