mirror of
https://gitea.tendokyu.moe/Hay1tsme/segatools.git
synced 2024-11-25 01:40:11 +01:00
45e2416702
This change deletes the GetProcAddress hook and exports symbols corresponding to the hooked functions from each hook DLL instead; we stop at redirecting LoadLibrary/GetModuleHandle calls to the hook DLL. This simplified approach has less hidden magic going on behind the scenes and is more readily composable (i.e. a hook DLL can export redirect symbols for more than one dynamically-loaded DLL).
15 lines
218 B
C
15 lines
218 B
C
#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);
|