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

@ -5,8 +5,16 @@
#include <stddef.h>
#include "hooklib/config.h"
#include "hooklib/gfx.h"
#include "hooklib/dvd.h"
#include "hooklib/gfx/gfx.h"
void dvd_config_load(struct dvd_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
cfg->enable = GetPrivateProfileIntW(L"dvd", L"enable", 1, filename);
}
void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
{
@ -18,11 +26,3 @@ void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename)
cfg->framed = GetPrivateProfileIntW(L"gfx", L"framed", 1, filename);
cfg->monitor = GetPrivateProfileIntW(L"gfx", L"monitor", 0, filename);
}
void dvd_config_load(struct dvd_config *cfg, const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
cfg->enable = GetPrivateProfileIntW(L"dvd", L"enable", 1, filename);
}