2005-08-26 17:39:27 +00:00
|
|
|
/*
|
|
|
|
===========================================================================
|
|
|
|
Copyright (C) 1999-2005 Id Software, Inc.
|
|
|
|
|
|
|
|
This file is part of Quake III Arena source code.
|
|
|
|
|
|
|
|
Quake III Arena source code is free software; you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2 of the License,
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
|
|
Quake III Arena source code is distributed in the hope that it will be
|
|
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2005-10-29 01:53:09 +00:00
|
|
|
along with Quake III Arena source code; if not, write to the Free Software
|
2005-08-26 17:39:27 +00:00
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
===========================================================================
|
|
|
|
*/
|
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
#include "../qcommon/q_shared.h"
|
|
|
|
#include "../qcommon/qcommon.h"
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2007-11-26 20:18:53 +00:00
|
|
|
// Require a minimum version of SDL
|
2013-01-17 13:31:30 +00:00
|
|
|
#define MINSDL_MAJOR 2
|
|
|
|
#define MINSDL_MINOR 0
|
|
|
|
#define MINSDL_PATCH 0
|
2007-11-26 20:18:53 +00:00
|
|
|
|
2007-09-05 18:17:46 +00:00
|
|
|
// Input subsystem
|
2013-01-17 13:31:30 +00:00
|
|
|
void IN_Init( void *windowData );
|
2007-11-30 18:32:52 +00:00
|
|
|
void IN_Frame( void );
|
|
|
|
void IN_Shutdown( void );
|
2008-08-09 13:20:00 +00:00
|
|
|
void IN_Restart( void );
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2007-09-06 20:31:30 +00:00
|
|
|
// Console
|
|
|
|
void CON_Shutdown( void );
|
|
|
|
void CON_Init( void );
|
2007-11-30 18:32:52 +00:00
|
|
|
char *CON_Input( void );
|
|
|
|
void CON_Print( const char *message );
|
|
|
|
|
|
|
|
unsigned int CON_LogSize( void );
|
|
|
|
unsigned int CON_LogWrite( const char *in );
|
|
|
|
unsigned int CON_LogRead( char *out, unsigned int outSize );
|
2005-08-26 17:39:27 +00:00
|
|
|
|
2016-06-12 21:06:54 +00:00
|
|
|
#ifdef __APPLE__
|
2007-09-05 18:17:46 +00:00
|
|
|
char *Sys_StripAppBundle( char *pwd );
|
2005-08-26 17:39:27 +00:00
|
|
|
#endif
|
2007-09-15 02:22:58 +00:00
|
|
|
|
2009-09-14 12:34:31 +00:00
|
|
|
void Sys_GLimpSafeInit( void );
|
2008-08-08 21:35:33 +00:00
|
|
|
void Sys_GLimpInit( void );
|
2008-08-03 19:42:53 +00:00
|
|
|
void Sys_PlatformInit( void );
|
2011-01-31 20:23:05 +00:00
|
|
|
void Sys_PlatformExit( void );
|
2011-07-18 14:56:57 +00:00
|
|
|
void Sys_SigHandler( int signal ) __attribute__ ((noreturn));
|
2007-11-30 18:32:52 +00:00
|
|
|
void Sys_ErrorDialog( const char *error );
|
|
|
|
void Sys_AnsiColorPrint( const char *msg );
|
2010-02-15 16:20:33 +00:00
|
|
|
|
|
|
|
int Sys_PID( void );
|
|
|
|
qboolean Sys_PIDIsRunning( int pid );
|