hooklib: Add D3D11 and DXGI graphics hooks

IDZ only supports D3D11 and Ongeki/Unity uses D3D11 by default.

This also includes a window hook and fullscreen fix for problematic
games (I am looking at you IDZ).
This commit is contained in:
2021-10-25 09:16:14 +00:00
committed by Hay1tsme
parent 6576af5a86
commit b6f1ca6437
23 changed files with 675 additions and 86 deletions

View File

@ -13,7 +13,7 @@
#include "chunihook/config.h"
#include "hooklib/config.h"
#include "hooklib/gfx.h"
#include "hooklib/gfx/gfx.h"
#include "platform/config.h"
#include "platform/platform.h"

View File

@ -10,7 +10,7 @@
#include "chunihook/chuni-dll.h"
#include "chunihook/slider.h"
#include "hooklib/gfx.h"
#include "hooklib/gfx/gfx.h"
#include "platform/platform.h"

View File

@ -14,7 +14,8 @@
#include "hook/process.h"
#include "hooklib/gfx.h"
#include "hooklib/gfx/d3d9.h"
#include "hooklib/gfx/gfx.h"
#include "hooklib/serial.h"
#include "hooklib/spike.h"
@ -61,6 +62,7 @@ static DWORD CALLBACK chuni_pre_startup(void)
/* Hook Win32 APIs */
gfx_hook_init(&chuni_hook_cfg.gfx, chuni_hook_mod);
gfx_d3d9_hook_init(&chuni_hook_cfg.gfx, chuni_hook_mod);
serial_hook_init();
/* Initialize emulation hooks */