if(Sys_LoadLibrary(dllnames_libavformat, &libavformat_dll, libavformatfuncs))
return true;
Con_Printf(CON_ERROR "Failed to load the libavformat library. Cannot use libavcodec without it\n");
- Sys_UnloadLibrary(&libavcodec_dll);
+ Sys_FreeLibrary(&libavcodec_dll);
}
return false;
void SCR_CaptureVideo_Ogg_CloseDLL(void)
{
- Sys_UnloadLibrary (&ve_dll);
- Sys_UnloadLibrary (&vo_dll);
- Sys_UnloadLibrary (&th_dll);
- Sys_UnloadLibrary (&og_dll);
+ Sys_FreeLibrary (&ve_dll);
+ Sys_FreeLibrary (&vo_dll);
+ Sys_FreeLibrary (&th_dll);
+ Sys_FreeLibrary (&og_dll);
}
// this struct should not be needed
if ((errorcode = qLibAvW_Init(&libavw_message)))
{
Con_Printf(CON_ERROR "LibAvW failed to initialize: %s\n", qLibAvW_ErrorString(errorcode));
- Sys_UnloadLibrary(&libavw_dll);
+ Sys_FreeLibrary(&libavw_dll);
}
Cvar_RegisterVariable(&cl_video_libavw_minwidth);
void LibAvW_CloseLibrary(void)
{
- Sys_UnloadLibrary(&libavw_dll);
+ Sys_FreeLibrary(&libavw_dll);
}
static void Crypto_CloseLibrary (void)
{
- Sys_UnloadLibrary (&d0_blind_id_dll);
+ Sys_FreeLibrary (&d0_blind_id_dll);
}
#endif
static void Crypto_Rijndael_CloseLibrary (void)
{
- Sys_UnloadLibrary (&d0_rijndael_dll);
+ Sys_FreeLibrary (&d0_rijndael_dll);
}
#endif
static void PK3_CloseLibrary (void)
{
#ifndef LINK_TO_ZLIB
- Sys_UnloadLibrary (&zlib_dll);
+ Sys_FreeLibrary (&zlib_dll);
#endif
}
PK3_CloseLibrary ();
#ifdef WIN32
- Sys_UnloadLibrary (&shfolder_dll);
- Sys_UnloadLibrary (&shell32_dll);
- Sys_UnloadLibrary (&ole32_dll);
+ Sys_FreeLibrary (&shfolder_dll);
+ Sys_FreeLibrary (&shell32_dll);
+ Sys_FreeLibrary (&ole32_dll);
#endif
if (fs_mutex)
font_ft2lib = NULL;
}
#ifndef DP_FREETYPE_STATIC
- Sys_UnloadLibrary (&ft2_dll);
+ Sys_FreeLibrary (&ft2_dll);
#endif
pp.buf = NULL;
}
if(qpng_access_version_number() / 100 >= 104)
if(!Sys_LoadLibrary (dllnames, &png14_dll, png14funcs))
{
- Sys_UnloadLibrary (&png_dll);
+ Sys_FreeLibrary (&png_dll);
return false;
}
return true;
*/
void PNG_CloseLibrary (void)
{
- Sys_UnloadLibrary (&png14_dll);
- Sys_UnloadLibrary (&png_dll);
+ Sys_FreeLibrary (&png14_dll);
+ Sys_FreeLibrary (&png_dll);
}
/*
void JPEG_CloseLibrary (void)
{
#ifndef LINK_TO_LIBJPEG
- Sys_UnloadLibrary (&jpeg_dll);
+ Sys_FreeLibrary (&jpeg_dll);
jpeg_tried_loading = false; // allow retry
#endif
}
*/
static void CURL_CloseLibrary (void)
{
- Sys_UnloadLibrary (&curl_dll);
+ Sys_FreeLibrary (&curl_dll);
}
*/
void OGG_CloseLibrary (void)
{
- Sys_UnloadLibrary (&vf_dll);
- Sys_UnloadLibrary (&vo_dll);
+ Sys_FreeLibrary (&vf_dll);
+ Sys_FreeLibrary (&vo_dll);
}
#endif
if (*qxmp_vercode < 0x040200)
{
Con_Printf("Found incompatible XMP library version %s, not loading. (4.2.0 or higher required)\n", *qxmp_version);
- Sys_UnloadLibrary (&xmp_dll);
+ Sys_FreeLibrary (&xmp_dll);
return false;
}
if (developer_loading.integer >= 1)
*/
void XMP_CloseLibrary (void)
{
- Sys_UnloadLibrary (&xmp_dll);
+ Sys_FreeLibrary (&xmp_dll);
}
#endif
* \param fcts
*/
qbool Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts);
-void Sys_UnloadLibrary (dllhandle_t* handle);
+void Sys_FreeLibrary (dllhandle_t* handle);
void* Sys_GetProcAddress (dllhandle_t handle, const char* name);
int Sys_CheckParm (const char *parm);
return true;
}
else
- Sys_UnloadLibrary(&dllhandle);
+ Sys_FreeLibrary(&dllhandle);
notfound:
#endif
#endif
if (Sys_LoadLibraryFunctions(dllhandle, fcts, true, (dllnames[i+1] != NULL) || (strrchr(sys.argv[0], '/'))))
break;
else
- Sys_UnloadLibrary (&dllhandle);
+ Sys_FreeLibrary (&dllhandle);
}
// see if the names can be loaded relative to the executable path
if (Sys_LoadLibraryFunctions(dllhandle, fcts, true, dllnames[i+1] != NULL))
break;
else
- Sys_UnloadLibrary (&dllhandle);
+ Sys_FreeLibrary (&dllhandle);
}
}
#endif
}
-void Sys_UnloadLibrary (dllhandle_t* handle)
+void Sys_FreeLibrary (dllhandle_t* handle)
{
#ifdef SUPPORTDLL
if (handle == NULL || *handle == NULL)
# else
Con_Printf("ODE library not compiled for double precision - incompatible! Not using ODE physics.\n");
# endif
- Sys_UnloadLibrary(&ode_dll);
+ Sys_FreeLibrary(&ode_dll);
ode_dll = NULL;
}
else
{
dCloseODE();
#ifndef LINK_TO_LIBODE
- Sys_UnloadLibrary(&ode_dll);
+ Sys_FreeLibrary(&ode_dll);
ode_dll = NULL;
#endif
}