diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-06-12 22:28:53 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-06-12 23:06:47 +0100 |
commit | 7aa6bd1cd88db9cceef3d1c07cd7664cb47538be (patch) | |
tree | f9db39fedd4ddcc3dc29e370af5b1b9b9894a948 /src/os-win32.h | |
parent | 7893ef46f85eb5a6021d6ab763ca84e382e64954 (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.h | 7 |
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); } |