summaryrefslogtreecommitdiffhomepage
path: root/src/os-win32.h
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-12 22:28:53 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-12 23:06:47 +0100
commit7aa6bd1cd88db9cceef3d1c07cd7664cb47538be (patch)
treef9db39fedd4ddcc3dc29e370af5b1b9b9894a948 /src/os-win32.h
parent7893ef46f85eb5a6021d6ab763ca84e382e64954 (diff)
Remove the terrible gameinfo.txt garbage at last
This also tidies up library handle grabbing with more os.h stuff, and improves the VDF creation logic - since we no longer store a couple of paths which makes it necessary to change that a bit anyway.
Diffstat (limited to 'src/os-win32.h')
-rw-r--r--src/os-win32.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os-win32.h b/src/os-win32.h
index fe61f84..a006083 100644
--- a/src/os-win32.h
+++ b/src/os-win32.h
@@ -45,10 +45,17 @@ typedef unsigned short os_char;
#define os_getenv _wgetenv
#define os_getcwd _wgetcwd
+#define OS_DLPREFIX ""
#define OS_DLSUFFIX ".dll"
#define OS_MAIN wmain
+static inline void *os_dlopen(const ushort *name) {
+ return LoadLibraryW(name);
+}
+static inline void *os_dlhandle(const ushort *name) {
+ return GetModuleHandleW(name);
+}
static inline void *os_dlsym(void *m, const char *s) {
return (void *)GetProcAddress(m, s);
}