aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys
Commit message (Collapse)AuthorAgeFilesLines
* define STRING and XSTRING in q_shared.h (#4054)ludwig2009-05-051-2/+0
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1539 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix dedicated server stdin console (#4009)ludwig2009-05-031-10/+8
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1537 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove superfluous comments committed with fix to bug #3999tma2009-03-021-4/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1508 edf5b092-35ff-0310-97b2-ce42778d08ea
* initialize Sys_Milliseconds early (#3999)ludwig2009-03-021-0/+5
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1507 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix some new GCC 4.3 warningstma2008-11-102-9/+16
| | | | | | | * Fix many many strict aliasing warnings, now that it's re-enabled git-svn-id: svn://svn.icculus.org/quake3/trunk@1487 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix unused variable warningtma2008-08-231-3/+8
| | | | | | | * Add USE_LOCAL_HEADERS guards to sys_loadlib.h git-svn-id: svn://svn.icculus.org/quake3/trunk@1458 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Always show the mouse cursor when the mouse is disabledtma2008-08-092-2/+2
| | | | | | | | | | | * Rename IN_StartupJoystick to IN_InitJoystick, add IN_ShutdownJoystick * Add IN_Restart, which avoids calling IN_DeactivateMouse at the wrong time * Call IN_Restart when changing r_fullscreen * Add CVAR_ROM r_sdlDriver for easy checking of the SDL driver in use * Random README tweaks git-svn-id: svn://svn.icculus.org/quake3/trunk@1441 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add Sys_GLimpInit for platform specific GLimp initialisationtma2008-08-084-13/+63
| | | | | | | | | | * Move Unix specific signal handlers to Sys_PlatformInit * (Windows only) Don't set the SDL video driver if SDL_VIDEODRIVER is already set externally * (Windows only) Use the "windib" SDL video driver if in_mouse is set to -1 git-svn-id: svn://svn.icculus.org/quake3/trunk@1440 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Change win32 client Sys_Sleep so it ONLY sleeps since before it was waking on tma2008-08-034-1/+39
| | | | | | | | | | | | | | more or less any input event; fine for the server, not so much use for the client * In the main loop, don't bother sleeping if it's going to be less than 10ms as the methods we're using to sleep at the moment aren't very precise * Add Sys_PlatformInit for platform specific initialisation * In win32 Sys_PlatformInit force selection of the DirectX SDL backend in order to get better fullscreen mouse input (in conjunction with a patched SDL DLL http://bugzilla.libsdl.org/show_bug.cgi?id=265) git-svn-id: svn://svn.icculus.org/quake3/trunk@1434 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Use Sys_Sleep to limit FPS, which will save CPUtma2008-07-213-37/+13
| | | | | | | | * Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory * Fix reopening of bug 3703, I hope git-svn-id: svn://svn.icculus.org/quake3/trunk@1431 edf5b092-35ff-0310-97b2-ce42778d08ea
* Add gamedirectory in .app to searchpath on MacOSXthilo2007-12-141-0/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1239 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add con_log.c and con_passive.c from r1222 to quake3.vcproj.juz2007-12-021-16/+16
| | | | | | | * Rename 'write' and 'read' variables in con_log.c, as these are already defined in io.h in the MSVC environment. git-svn-id: svn://svn.icculus.org/quake3/trunk@1224 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add con_log.c to log all console outputtma2007-11-308-94/+336
| | | | | | | | | | | | * Add con_passive.c to cut down on #ifdef DEDICATED in sys_main.c * Add Sys_ErrorDialog to report ERR_FATALs to the user + On Windows use a MessageBox and offer to copy the console log to the clipboard + On everything else print to the terminal and save the console log as crashlog.txt git-svn-id: svn://svn.icculus.org/quake3/trunk@1222 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move MINSDL_ values to sys_local.h from Makefile/VC projecttma2007-11-262-0/+6
| | | | | | | | * Merge *BSD platform definitions in q_platform.h * IRIX support (Patrick Baggett <baggett.patrick@figglesoftware.com>) git-svn-id: svn://svn.icculus.org/quake3/trunk@1218 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move SDL library version check to sys_main.c as it's proving difficult totma2007-11-251-0/+8
| | | | | | | | | | make the Makefile check sufficiently portable * Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls * Replace OS X uname workaround with Solaris workaround, as I believe OS X uname now behaves the same as GNU name git-svn-id: svn://svn.icculus.org/quake3/trunk@1217 edf5b092-35ff-0310-97b2-ce42778d08ea
* * s/O_NDELAY/O_NONBLOCK/tma2007-11-191-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1215 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix bug where an extraneous render command can cause a crash whentma2007-11-181-11/+11
| | | | | | | | | recording video * Make S_CodecUtilClose NULL the snd_stream_t pointer * Fix indentation in runtime SDL check code git-svn-id: svn://svn.icculus.org/quake3/trunk@1214 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix to win_resource.rc for MSVC buildtma2007-11-031-4/+0
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1206 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)tma2007-11-022-11/+14
| | | | | | | | | * (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>) * (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>) * For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0 git-svn-id: svn://svn.icculus.org/quake3/trunk@1204 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Grr. Argh. Whitespace. etc.tma2007-10-091-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1193 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replace Sys_AnsiColorify with Sys_AnsiColorPrint, a more simple means oftma2007-10-091-78/+51
| | | | | | | | achieving the same feature * Handle non-numeric color codes in Sys_AnsiColorPrint git-svn-id: svn://svn.icculus.org/quake3/trunk@1192 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix incorrect use of strncpyludwig2007-10-081-10/+20
| | | | | | | this function should really be removed or rewritten from scratch git-svn-id: svn://svn.icculus.org/quake3/trunk@1191 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove some C99isms (f0rqu3)tma2007-10-011-1/+1
| | | | | | | * Provide Q_snprintf wrapper for snprintf (f0rqu3) git-svn-id: svn://svn.icculus.org/quake3/trunk@1188 edf5b092-35ff-0310-97b2-ce42778d08ea
* * rewrite of the win32 dedicated console:tjw2007-09-155-208/+327
| | | | | | | | | | | | | | | | | | | | | | 1) NET_Sleep() no longer watches for input, Sys_Sleep() added for waiting on input. 2) Added "CtrlHandler" for trapping Ctrl-C and other quit methods not handled by signals on windows 3) Added history support 4) Added tab completion 5) Removed automatic cursor/scroll adjustment (too problematic) 6) Enable mousewheel scrolling 7) Stop using the InputBuffer for editing This seems to work pretty well now, but I jumped the gun on a previous commit message by saying you can scroll now without locking up your server. That was only true up until the point that a server tried to print to the console, at that point it will hang until you release the scroll bar :( It may be possible to get around this by using a seperate thread for console output, but that's a whole new can of worms. git-svn-id: svn://svn.icculus.org/quake3/trunk@1182 edf5b092-35ff-0310-97b2-ce42778d08ea
* * win32 dedicated console cleanup: drop silly predifined height and width,tjw2007-09-091-17/+37
| | | | | | | | scroll the command buffer to the right when typing long lines, restore the original color theme on CON_Shutdown(). git-svn-id: svn://svn.icculus.org/quake3/trunk@1172 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Adds preliminary support for win32 dedicated server console.tjw2007-09-071-1/+195
| | | | | | | | | Functionality is still quite limited (no tab completion, history, etc.), but at least with this console you can scroll without locking up your server. git-svn-id: svn://svn.icculus.org/quake3/trunk@1171 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Build dedicated server binary on Windowstma2007-09-065-62/+140
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1169 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Compile time and runtime checks for SDL >= 1.2.7tma2007-09-061-0/+19
| | | | | | | * Modified versioning to play nice with the reverted Makefile change git-svn-id: svn://svn.icculus.org/quake3/trunk@1168 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Merge unified-sdl to trunktma2007-09-058-0/+2241
* Bump Q3_VERSION to 1.35 git-svn-id: svn://svn.icculus.org/quake3/trunk@1161 edf5b092-35ff-0310-97b2-ce42778d08ea