aboutsummaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-10-27 23:28:51 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-10-27 23:28:51 -0400
commitfb95177298bb92098b61f09b9f66c1fce32f2f02 (patch)
treec73b45c91f145dca7d055a1cde1f4efaa6db8da6 /os.h
parent36b6d84ee4b520bdf43891ea86df03cf660cb464 (diff)
downloadrt-fb95177298bb92098b61f09b9f66c1fce32f2f02.tar.gz
rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.zip
add hooking and IVEngineServer interface
Diffstat (limited to 'os.h')
-rw-r--r--os.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/os.h b/os.h
index 2635268..0c8edfb 100644
--- a/os.h
+++ b/os.h
@@ -7,8 +7,12 @@
#include <Windows.h>
#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;