idz: added fullscreen patch by @Felix (again)

This commit is contained in:
Dniel97 2023-11-20 18:04:45 +01:00
parent 146fac9287
commit b9fd59fd70
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
3 changed files with 16 additions and 4 deletions

View File

@ -47,6 +47,17 @@ enable=1
; that subnet must start with 192.168.
subnet=192.168.158.0
[gfx]
; Enables the graphics hook. This is required for some Initial D Zero versions
; for example v1.31 and v2.11 to run properly in fullscreen.
enable=0
; Force the game to run windowed.
windowed=0
; Add a frame to the game window if running windowed.
framed=1
; Select the monitor to run the game on. (Fullscreen only, 0=primary screen)
monitor=0
[gpio]
; Emulated Nu DIP switch for Distribution Server setting.
;

View File

@ -45,7 +45,6 @@ static DWORD CALLBACK idz_pre_startup(void)
idz_hook_config_load(&idz_hook_cfg, L".\\segatools.ini");
/*
module_path = module_file_name(NULL);
if (module_path != NULL) {
@ -64,16 +63,13 @@ static DWORD CALLBACK idz_pre_startup(void)
module_path = NULL;
}
*/
/* Hook Win32 APIs */
serial_hook_init();
/*
gfx_hook_init(&idz_hook_cfg.gfx);
gfx_d3d11_hook_init(&idz_hook_cfg.gfx, idz_hook_mod);
gfx_dxgi_hook_init(&idz_hook_cfg.gfx, idz_hook_mod);
*/
zinput_hook_init(&idz_hook_cfg.zinput);
dvd_hook_init(&idz_hook_cfg.dvd, idz_hook_mod);

View File

@ -1,6 +1,11 @@
LIBRARY idzhook
EXPORTS
CreateDXGIFactory
CreateDXGIFactory1
CreateDXGIFactory2
D3D11CreateDevice
D3D11CreateDeviceAndSwapChain
aime_io_get_api_version
aime_io_init
aime_io_led_set_color