]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
unfinished beginnings of support for voodoo1/voodoo2 class paths for realtime lightin...
[xonotic/darkplaces.git] / sys_win.c
index 7363e57f2922ccc811208f6fd66f96cb677f9b64..e5655b653768b125371f396bd8e60ec9b8c82fb5 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -45,6 +45,31 @@ static HANDLE        hFile;
 static HANDLE  heventParent;
 static HANDLE  heventChild;
 
+
+/*
+===============================================================================
+
+DLL MANAGEMENT
+
+===============================================================================
+*/
+
+dllhandle_t Sys_LoadLibrary (const char* name)
+{
+       return LoadLibrary (name);
+}
+
+void Sys_UnloadLibrary (dllhandle_t handle)
+{
+       FreeLibrary (handle);
+}
+
+void* Sys_GetProcAddress (dllhandle_t handle, const char* name)
+{
+       return (void *)GetProcAddress (handle, name);
+}
+
+
 /*
 ===============================================================================
 
@@ -346,7 +371,7 @@ WinMain
 */
 HINSTANCE      global_hInstance;
 int                    global_nCmdShow;
-char           *argv[MAX_NUM_ARGVS];
+const char     *argv[MAX_NUM_ARGVS];
 char           program_name[MAX_OSPATH];
 
 int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)