OpenMoHAA 0.82.1
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_LOCAL_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
57#ifdef __APPLE__
58char *Sys_StripAppBundle( char *pwd );
59#endif
60
61void Sys_GLimpSafeInit( void );
62void Sys_GLimpInit( void );
63void Sys_PlatformInit( void );
64void Sys_PlatformExit( void );
65void Sys_SigHandler( int signal ) __attribute__ ((noreturn));
66void Sys_ErrorDialog( const char *error );
67void Sys_AnsiColorPrint( const char *msg );
68
69int Sys_PID( void );
70qboolean Sys_PIDIsRunning( int pid );
71
72#ifdef PROTOCOL_HANDLER
73char *Sys_ParseProtocolUri( const char *uri );
74#endif
75
76#include "new/sys_local_new.h"
77
78#ifdef __cplusplus
79}
80#endif