X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=sys.h;h=eb99088fee0c5c7100d36743c375a7725f787ce0;hp=0852662d582c70ad9a9b28c4c2684bb78c9f50d7;hb=c573a47a538a3a90cb34ccf2e3e21a0d1b129d20;hpb=19dc59c888b9bd06b45d619d5f4861c984730f2d diff --git a/sys.h b/sys.h index 0852662d..eb99088f 100644 --- a/sys.h +++ b/sys.h @@ -171,19 +171,27 @@ 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); -/// called early in Host_Init -void Sys_InitConsole (void); /// called after command system is initialized but before first Con_Print void Sys_Init_Commands (void); @@ -199,8 +207,8 @@ char *Sys_TimeString(const char *timeformat); void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN; /// (may) output text to terminal which launched program -void Sys_PrintToTerminal(const char *text); -void Sys_PrintfToTerminal(const char *fmt, ...); +void Sys_Print(const char *text); +void Sys_Printf(const char *fmt, ...); /// INFO: This is only called by Host_Shutdown so we dont need testing for recursion void Sys_Shutdown (void);