Debian Codegraph @

code/sys/sys_local.h

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