00001 00006 /* 00007 Copyright (C) 1997-2001 Id Software, Inc. 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00017 00018 See the GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 00024 */ 00025 00026 #include <fcntl.h> 00027 00028 #include "../../common/common.h" 00029 #include "../system.h" 00030 00031 /* ======================================================================= */ 00032 /* General routines */ 00033 /* ======================================================================= */ 00034 00035 void Sys_Init (void) 00036 { 00037 sys_os = Cvar_Get("sys_os", "linux", CVAR_SERVERINFO, NULL); 00038 sys_affinity = Cvar_Get("sys_affinity", "0", CVAR_ARCHIVE, NULL); 00039 sys_priority = Cvar_Get("sys_priority", "0", CVAR_ARCHIVE, "Process nice level"); 00040 } 00041 00046 int main (int argc, const char **argv) 00047 { 00048 Sys_ConsoleInit(); 00049 Qcommon_Init(argc, argv); 00050 00051 fcntl(STDIN_FILENO, F_SETFL, fcntl(STDIN_FILENO, F_GETFL, 0) | FNDELAY); 00052 00053 while (1) 00054 Qcommon_Frame(); 00055 }