OpenMoHAA 0.83.0
Loading...
Searching...
No Matches
sys_local.h
1/*
2===========================================================================
3Copyright (C) 1999-2005 Id Software, Inc.
4
5This file is part of Quake III Arena source code.
6
7Quake III Arena source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12Quake III Arena source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with Quake III Arena source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#include "../qcommon/q_shared.h"
24#include "../qcommon/qcommon.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#ifndef DEDICATED
31#ifdef USE_INTERNAL_SDL_HEADERS
32# include "SDL_version.h"
33#else
34# include <SDL_version.h>
35#endif
36
37// Require a minimum version of SDL
38#define MINSDL_MAJOR 2
39#define MINSDL_MINOR 0
40#if SDL_VERSION_ATLEAST( 2, 0, 5 )
41#define MINSDL_PATCH 5
42#else
43#define MINSDL_PATCH 0
44#endif
45#endif
46
47// Console
48void CON_Shutdown( void );
49void CON_Init( void );
50char *CON_Input( void );
51void CON_Print( const char *message );
52
53unsigned int CON_LogSize( void );
54unsigned int CON_LogWrite( const char *in );
55unsigned int CON_LogRead( char *out, unsigned int outSize );
56
57char *Sys_BinaryPath( void );
58char *Sys_BinaryPathRelative( const char *relative );
59
60#ifdef __APPLE__
61char *Sys_StripAppBundle( char *pwd );
62#endif
63
64void Sys_GLimpSafeInit( void );
65void Sys_GLimpInit( void );
66void Sys_PlatformInit( void );
67void Sys_PlatformExit( void );
68void Sys_SigHandler( int signal ) Q_NO_RETURN;
69void Sys_ErrorDialog( const char *error );
70void Sys_AnsiColorPrint( const char *msg );
71
72int Sys_PID( void );
73qboolean Sys_PIDIsRunning( int pid );
74
75#ifdef PROTOCOL_HANDLER
76char *Sys_ParseProtocolUri( const char *uri );
77#endif
78
79#include "new/sys_local_new.h"
80
81#ifdef __cplusplus
82}
83#endif