*/
-#include "quakedef.h"
+#include "darkplaces.h"
+#include "cl_screen.h"
#include "image.h"
#include "jpeg.h"
#include "image_png.h"
#endif
// Load the DLL
- return Sys_LoadLibrary (dllnames, &jpeg_dll, jpegfuncs);
+ return Sys_LoadDependency (dllnames, &jpeg_dll, jpegfuncs);
#endif
}
void JPEG_CloseLibrary (void)
{
#ifndef LINK_TO_LIBJPEG
- Sys_UnloadLibrary (&jpeg_dll);
+ Sys_FreeLibrary (&jpeg_dll);
jpeg_tried_loading = false; // allow retry
#endif
}