forked from TeamTofuShop/segatools
hooklib/gfx.c: Wire up gfx config
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user