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);
+}
+
+
/*
===============================================================================
*/
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)