]> icculus.org git repositories - divverent/darkplaces.git/blob - vid_null.c
added cl_gameplayfix_soundsmovewithentities cvar so that this feature
[divverent/darkplaces.git] / vid_null.c
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3
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.
8
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.
12
13 See the GNU General Public License for more details.
14
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.
18 */
19
20 #include <signal.h>
21 #include "quakedef.h"
22
23 int cl_available = false;
24
25 qboolean vid_supportrefreshrate = false;
26
27 void VID_Shutdown(void)
28 {
29 }
30
31 void signal_handler(int sig)
32 {
33         Con_Printf("Received signal %d, exiting...\n", sig);
34         Sys_Quit(1);
35 }
36
37 void InitSig(void)
38 {
39 #ifndef WIN32
40         signal(SIGHUP, signal_handler);
41         signal(SIGINT, signal_handler);
42         signal(SIGQUIT, signal_handler);
43         signal(SIGILL, signal_handler);
44         signal(SIGTRAP, signal_handler);
45         signal(SIGIOT, signal_handler);
46         signal(SIGBUS, signal_handler);
47         signal(SIGFPE, signal_handler);
48         signal(SIGSEGV, signal_handler);
49         signal(SIGTERM, signal_handler);
50 #endif
51 }
52
53 void VID_Finish (qboolean allowmousegrab)
54 {
55 }
56
57 int VID_SetGamma(unsigned short *ramps, int rampsize)
58 {
59         return FALSE;
60 }
61
62 int VID_GetGamma(unsigned short *ramps, int rampsize)
63 {
64         return FALSE;
65 }
66
67 void VID_Init(void)
68 {
69         InitSig(); // trap evil signals
70 }
71
72 int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate, int stereobuffer)
73 {
74         return false;
75 }
76
77 void *GL_GetProcAddress(const char *name)
78 {
79         return NULL;
80 }
81
82 void Sys_SendKeyEvents(void)
83 {
84 }
85
86 void IN_Move(void)
87 {
88 }