From fb95177298bb92098b61f09b9f66c1fce32f2f02 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Sun, 27 Oct 2024 23:28:51 -0400 Subject: add hooking and IVEngineServer interface --- os.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'os.h') diff --git a/os.h b/os.h index 2635268..0c8edfb 100644 --- a/os.h +++ b/os.h @@ -7,8 +7,12 @@ #include #include "intdef.h" +/* This is really just here because Windows API functions are ugly. Maybe this + * will be cross platform one day... */ + #define os_dlopen LoadLibraryA -#define os_dlsym GetProcAddress +#define os_dlsym (void *)GetProcAddress +#define os_dlclose FreeLibrary inline bool os_mprot(void *mem, int len, int mode) { ulong old; -- cgit v1.2.3-54-g00ecf