]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
sv_save: Call CL_Disconnect and ToggleMenu via hook
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index e1b6c393ed55d600feced126ef64e13309364efd..ea711f661e7f00a5687988a76f9869f175108a27 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define SYS_H
 
 #include "qtypes.h"
-#include "cvar.h"
+#include "qdefs.h"
 
 /* Preprocessor macros to identify platform
     DP_OS_NAME         - "friendly" name of the OS, for humans to read
@@ -148,7 +148,7 @@ typedef struct sys_s
 
 extern sys_t sys;
 
-extern cvar_t sys_usenoclockbutbenchmark;
+extern struct cvar_s sys_usenoclockbutbenchmark;
 
 //
 // DLL management
@@ -171,13 +171,23 @@ typedef struct dllfunction_s
 }
 dllfunction_t;
 
-/*! Loads a library. 
+qbool Sys_LoadSelf(dllhandle_t *handle);
+
+/*! Loads a dependency library. 
  * \param dllnames a NULL terminated array of possible names for the DLL you want to load.
  * \param handle
  * \param fcts
  */
-qbool Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts);
-void Sys_UnloadLibrary (dllhandle_t* handle);
+qbool Sys_LoadDependency (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts);
+
+/*! Loads a library.
+ * \param name a string of the library filename
+ * \param handle
+ * \return true if library was loaded successfully
+ */
+qbool Sys_LoadLibrary(const char *name, dllhandle_t *handle);
+
+void Sys_FreeLibrary (dllhandle_t* handle);
 void* Sys_GetProcAddress (dllhandle_t handle, const char* name);
 
 int Sys_CheckParm (const char *parm);