summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/sys.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/quake/sys.h')
-rw-r--r--apps/plugins/sdl/progs/quake/sys.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/sys.h b/apps/plugins/sdl/progs/quake/sys.h
new file mode 100644
index 0000000000..55a97aee19
--- /dev/null
+++ b/apps/plugins/sdl/progs/quake/sys.h
@@ -0,0 +1,74 @@
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20// sys.h -- non-portable functions
21
22/* frees file handles */
23void Sys_Shutdown(void);
24
25//
26// file IO
27//
28
29// returns the file size
30// return -1 if file is not present
31// the file should be in BINARY mode for stupid OSs that care
32int Sys_FileOpenRead (char *path, int *hndl);
33
34int Sys_FileOpenWrite (char *path);
35void Sys_FileClose (int handle);
36void Sys_FileSeek (int handle, int position);
37int Sys_FileRead (int handle, void *dest, int count);
38int Sys_FileWrite (int handle, void *data, int count);
39int Sys_FileTime (char *path);
40void Sys_mkdir (char *path);
41
42//
43// memory protection
44//
45void Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length);
46
47//
48// system IO
49//
50void Sys_DebugLog(char *file, char *fmt, ...);
51
52void Sys_Error (char *error, ...);
53// an error will cause the entire program to exit
54
55void Sys_Printf (char *fmt, ...);
56// send text to the console
57
58void Sys_Quit (void);
59
60double Sys_FloatTime (void);
61
62char *Sys_ConsoleInput (void);
63
64void Sys_Sleep (void);
65// called to yield for a little bit so as
66// not to hog cpu when paused or debugging
67
68void Sys_SendKeyEvents (void);
69// Perform Key_Event () callbacks until the input que is empty
70
71void Sys_LowFPPrecision (void);
72void Sys_HighFPPrecision (void);
73void Sys_SetFPCW (void);
74