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
parent 8412ee2c16
commit f251283eb6
23 changed files with 675 additions and 86 deletions

16
hooklib/gfx/gfx.h Normal file
View File

@ -0,0 +1,16 @@
#pragma once
#include <windows.h>
#include <stdbool.h>
struct gfx_config {
bool enable;
bool windowed;
bool framed;
int monitor;
};
void gfx_hook_init(const struct gfx_config *cfg, HINSTANCE self);
HRESULT gfx_frame_window(HWND hwnd);