2 Copyright (C) 1996-1997 Id Software, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 // sys.h -- non-portable functions
33 typedef HMODULE dllhandle_t;
37 typedef void* dllhandle_t;
47 qboolean Sys_LoadLibrary (const char* dllname, dllhandle_t* handle, const dllfunction_t *fcts);
48 void Sys_UnloadLibrary (dllhandle_t* handle);
49 void* Sys_GetProcAddress (dllhandle_t handle, const char* name);
55 void Sys_Error (const char *error, ...);
56 // an error will cause the entire program to exit
58 void Sys_Print(const char *msg);
59 void Sys_Printf(const char *fmt, ...);
60 // send text to the quake console (and possibly to terminal)
62 void Sys_PrintToTerminal(const char *text);
63 // (may) output text to terminal which launched program
65 void Sys_Shutdown (void); //INFO: This is only called by Host_Shutdown so we dont need testing for recursion
68 double Sys_DoubleTime (void);
70 char *Sys_ConsoleInput (void);
72 void Sys_Sleep(int milliseconds);
73 // called to yield for a little bit so as
74 // not to hog cpu when paused or debugging
76 void Sys_SendKeyEvents (void);
77 // Perform Key_Event () callbacks until the input que is empty
79 // called after Com_InitArgv
80 void Sys_Shared_EarlyInit (void);
81 // called after Host_init
82 void Sys_Shared_LateInit (void);
84 // returns current timestamp
85 char *Sys_TimeString(const char *timeformat);