X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys_win.c;h=e5655b653768b125371f396bd8e60ec9b8c82fb5;hp=12ee10b519ec413d3f22212897fa7a561b2f0e4b;hb=f7c977317897310bddfd6f32e179a79e2c1caa14;hpb=22658cc584bec6c2c683d0692470de5d961d46a1 diff --git a/sys_win.c b/sys_win.c index 12ee10b5..e5655b65 100644 --- 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); +} + + /* =============================================================================== @@ -103,7 +128,7 @@ void Sys_Error (const char *error, ...) if (!in_sys_error0) { in_sys_error0 = 1; - VID_SetDefaultMode (); + VID_Shutdown(); MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP); } else @@ -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)