diff options
| author | 2024-10-27 23:28:51 -0400 | |
|---|---|---|
| committer | 2024-10-27 23:28:51 -0400 | |
| commit | fb95177298bb92098b61f09b9f66c1fce32f2f02 (patch) | |
| tree | c73b45c91f145dca7d055a1cde1f4efaa6db8da6 /os.h | |
| parent | 36b6d84ee4b520bdf43891ea86df03cf660cb464 (diff) | |
| download | rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.tar.gz rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.zip | |
add hooking and IVEngineServer interface
Diffstat (limited to 'os.h')
| -rw-r--r-- | os.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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;
|
