diff --git a/dist/idz/segatools.ini b/dist/idz/segatools.ini index 3fae262..c7fa88b 100644 --- a/dist/idz/segatools.ini +++ b/dist/idz/segatools.ini @@ -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. ; diff --git a/idzhook/dllmain.c b/idzhook/dllmain.c index b358470..10b3ce5 100644 --- a/idzhook/dllmain.c +++ b/idzhook/dllmain.c @@ -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); diff --git a/idzhook/idzhook.def b/idzhook/idzhook.def index 486400c..d8db3b0 100644 --- a/idzhook/idzhook.def +++ b/idzhook/idzhook.def @@ -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