]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
Rename qboolean to qbool
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index 9dfdf620c91c9899d26a139272cdc038f86f1b58..5f277e7861f13f0e0eedad9b7f1526ca08845cca 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -22,6 +22,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef SYS_H
 #define SYS_H
 
+typedef struct sys_s
+{
+       int argc;
+       const char **argv;
+       int selffd;
+       int outfd;
+       int nicelevel;
+       qbool nicepossible;
+       qbool isnice;
+} sys_t;
+
+extern sys_t sys;
+
 extern cvar_t sys_usenoclockbutbenchmark;
 
 //
@@ -50,10 +63,12 @@ dllfunction_t;
  * \param handle
  * \param fcts
  */
-qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts);
+qbool Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllfunction_t *fcts);
 void Sys_UnloadLibrary (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
@@ -86,7 +101,7 @@ void Sys_Quit (int returnvalue);
 #ifdef __cplusplus
 extern "C"
 #endif
-void Sys_AllowProfiling (qboolean enable);
+void Sys_AllowProfiling (qbool enable);
 
 typedef struct sys_cleantime_s
 {
@@ -109,7 +124,7 @@ void Sys_SendKeyEvents (void);
 
 char *Sys_GetClipboardData (void);
 
-extern qboolean sys_supportsdlgetticks;
+extern qbool sys_supportsdlgetticks;
 unsigned int Sys_SDL_GetTicks (void); // wrapper to call SDL_GetTicks
 void Sys_SDL_Delay (unsigned int milliseconds); // wrapper to call SDL_Delay