1 /**
2 * @file
3 * @brief This file can stub out the entire client system for pure dedicated servers
4 *
5 * @todo Calls to functions not required by the dedicated server should be surrounded by the DEDICATED_ONLY macro.
6 */
7
8 /*
9 Copyright (C) 1997-2001 Id Software, Inc.
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
20 See the GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 */
27
28 #ifdef DEDICATED_ONLY
29
30 #include "../common/common.h"
31 #include "../ports/system.h"
32
CL_Init(void)33 void CL_Init (void)
34 {
35 }
36
CL_InitAfter(void)37 void CL_InitAfter (void)
38 {
39 }
40
CL_Drop(void)41 void CL_Drop (void)
42 {
43 }
44
Con_Print(const char * txt)45 void Con_Print (const char* txt)
46 {
47 }
48
CL_Shutdown(void)49 void CL_Shutdown (void)
50 {
51 }
52
CL_Frame(int now,void * data)53 void CL_Frame (int now, void* data)
54 {
55 }
56
CL_SlowFrame(int now,void * data)57 void CL_SlowFrame (int now, void* data)
58 {
59 }
60
CL_ParseClientData(const char * type,const char * name,const char ** text)61 bool CL_ParseClientData (const char* type, const char* name, const char** text)
62 {
63 return true;
64 }
65
Cmd_ForwardToServer(void)66 void Cmd_ForwardToServer (void)
67 {
68 const char* cmd;
69
70 cmd = Cmd_Argv(0);
71 Com_Printf("Unknown command \"%s\"\n", cmd);
72 }
73
SCR_BeginLoadingPlaque(void)74 void SCR_BeginLoadingPlaque (void)
75 {
76 }
77
SCR_EndLoadingPlaque(void)78 void SCR_EndLoadingPlaque (void)
79 {
80 }
81
CL_Milliseconds(void)82 int CL_Milliseconds (void)
83 {
84 return Sys_Milliseconds();
85 }
86
Key_Init(void)87 void Key_Init (void)
88 {
89 Cmd_AddCommand("bind", Cmd_Dummy_f);
90 }
91
92 #endif
93