Zack Middleton
347b429fdb
Fix potential OOB in Windows Dedicated TTY CON_Show
...
Found by Coverity.
2014-05-26 23:11:56 -05:00
MAN-AT-ARMS
8661e0509b
Release netowrk bindings on shutdown
2014-02-22 21:18:34 -05:00
Tim Angus
462694763e
Bug #6021 Fix misuse of Sys_Mkdir (Joerg Dietrich)
2013-09-04 17:56:11 +01:00
Thilo Schulz
daf71ca502
Fix recursive crash when home path cannot be created
2013-08-25 12:00:30 +02:00
Zack Middleton
43ea1aebb3
Fix Windows server history scrolling
...
Update history position when CON_HistNext goes to input line, otherwise
when going to previous a line is skipped.
Don't let CON_HistPrev go to unused lines.
2013-07-21 17:32:56 -05:00
/dev/humancontroller
a8ce30163e
make the fread() success-check code in Sys_RandomBytes() more secure
2013-05-30 15:41:19 -05:00
Tim Angus
230af8c9e9
Fix shfolder.dll not getting freed
2013-04-09 21:43:01 +01:00
Zack Middleton
2e45edb550
5717 - Gamecode can open file "" for reading
2013-02-15 21:08:47 -06:00
Zack Middleton
2d6b68edd8
Fix win32 console partial print being overwritten
2013-01-10 16:29:54 -06:00
Zack Middleton
20cd170993
Make win32 console cursor visible
2013-01-10 15:34:54 -06:00
Zack Middleton
c1ddacf5be
Fix win32 input left on buffer and overwritten
...
The input line on the console screen buffer was moved up a line and
overwritten by CON_Print.
Remove input line when console shutdown as well.
2013-01-10 15:06:59 -06:00
Zack Middleton
daa9619913
Don't look for colors past win32 input line length
2013-01-09 15:42:21 -06:00
Zack Middleton
768083b46f
Fix win32 dedicated input line printing to backlog
...
Use to write win32 input line using WriteConsole then overwrite by
CON_Print, so when CON_Print removes color format characters the end of original input line was visable.
"hi ^1guys" use to be shown as "hi guysys" in the console backlog.
2013-01-09 15:21:44 -06:00
Zack Middleton
c501c1ad8a
Colorize text on win32 console
...
Text input line color based on code by "spior"
Main colorize function based on Sys_AnsiColorPrint in sys_main.c
2013-01-08 17:20:01 -06:00
Thilo Schulz
ded2b11959
Fix this for real now.
2012-07-23 21:27:17 +00:00
Tim Angus
88cbeae0fd
* Fix warning
2012-07-07 18:24:20 +00:00
Thilo Schulz
053aa8ead7
Fix windows as well
2012-07-07 18:22:19 +00:00
Tim Angus
37f2b4db90
* (bug #5709 ) Fix crash when invoked with --version
2012-07-07 17:32:19 +00:00
Zack Middleton
6067cadc72
Removed 0xAD character, from /dev/humancontroller.
2012-06-19 14:47:30 +00:00
Zachary Slater
b5acc31a4d
CVE-2012-3345
2012-06-14 18:28:58 +00:00
Zack Middleton
c84377854a
Unix clients can now enter commands from tty console. Patch by Rambetter with some edits by me. ( #4799 )
2012-02-06 21:05:57 +00:00
Tim Angus
fd986dae06
* Fix various warnings with GCC and clang
2011-10-27 21:32:28 +00:00
Thilo Schulz
d4f8c4716d
Force unload of running VMs when quitting through signal handler
2011-10-14 13:52:28 +00:00
Thilo Schulz
8a500d71da
Set default rounding mode to FE_NEAREST again. Thanks to Matthias Bentrup for providing some explanations.
2011-09-27 14:43:20 +00:00
Zack Middleton
0866b667e0
Fixed win32 dedicated server console output. It use to write input line and then write output over the top of it. Reported by Ensiform.
2011-09-12 20:14:36 +00:00
Zack Middleton
06231971ed
Use STDOUT_FILENO instead of 1 in con_tty.c
2011-08-05 16:19:01 +00:00
Thilo Schulz
52aed503b5
Bug 5146 - Remove last of warnings under gcc 4.6.1 for Linux, patch by q3urt.undead@gmail.com
2011-08-05 13:33:15 +00:00
Tim Angus
85ae08e800
* Fix some grammar in DLL loading
...
* s/Sys_LoadQVMDll/Sys_LoadGameDll/
2011-08-03 14:32:49 +00:00
Thilo Schulz
8ab91bde8e
- Fix already defined command warnings for minimize
...
- Fix recursive CL_Shutdown warning and "command already defined" warnings when quitting while playing on a server that changed the gamedir.
2011-08-01 10:16:40 +00:00
Thilo Schulz
404fe4e6e0
Don't search system directories for renderer lib
2011-08-01 09:33:48 +00:00
Thilo Schulz
3752b1d7c4
Change DLL search path order for external libraries that are linked at runtime, like libcurl or libopenal to:
...
* system library paths
* executable path
* fs_basepath
2011-07-29 20:18:37 +00:00
Thilo Schulz
23f6fd1633
Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings
2011-07-29 12:27:00 +00:00
Tim Angus
22552c7bab
* Replace usage of system with fork/exec
2011-07-24 22:01:50 +00:00
Tim Angus
b248479376
* Fix various issues with unix Sys_Dialog
2011-07-18 19:32:25 +00:00
Thilo Schulz
9dc32d55e2
Bug 4812 - GCC __attribute__ annotations for printf, non-returning functions etc., patch by linux@youmustbejoking.demon.co.uk and Zack Middleton
2011-07-18 14:56:57 +00:00
Tim Angus
ea6cf5fda9
* Use specific exit code for xmessage
2011-07-18 10:14:04 +00:00
Thilo Schulz
dee3724a13
- Improve game_restart:
...
* differing screen resolutions and network settings are now honoured when changing fs_game
* Fix hunk memory leak on game_restart
* Move cls.state and cls.servername to clc so connection state is fully preserved over game_restart
* Revert back to previous fs_game after disconnecting from a server that triggered a game_restart
* Fix error dialog popping up after every game_restart if an error happened previously (reported by Ensiform)
- Fixed that not all commands added by CL_Init() would be removed by CL_Shutdown()
2011-06-21 11:18:35 +00:00
Thilo Schulz
055bd3b464
Bug 5047 - Win32 dedicated server console title should use define, patch by Zack Middleton
2011-06-18 14:30:20 +00:00
Thilo Schulz
9219cde4e8
- Small change to search path order - local files not in .pk3s take precedence over files in pk3s. Should make life easier for modders/mappers wanting to override textures that are already contained in some older pk3
...
- Make VM loading more robust, change loading order: when vm_* == 0 first try loading DLL, then QVM in *each* search directory/path
- Fix FS_FileForHandle that would return a FILE pointer to invalid file handle 0
2011-06-15 22:09:26 +00:00
Thilo Schulz
a447aa82af
Fix #if macros for idx64 and id386
2011-06-15 14:10:20 +00:00
Thilo Schulz
03201aff22
- Add MASM assembler files for MSVC x64 projects to support vm_x86 in x64 mode
...
- Clean up ftol()/snapvector() mess
- Make use of SSE instructions for ftol()/snapvector() if available
- move ftol/snapvector pure assembler to inline assembler, this will add x86_64 and improve support for different calling conventions
- Set FPU control word at program startup to get consistent behaviour on all platforms
2011-06-13 09:56:39 +00:00
Thilo Schulz
876fd7dcb9
- Add HOMEPATH default name define to q_shared.c, patch by uZu ( #4973 )
...
- Reverted change from (#4972 ) and implemented the other suggestion to be consistent with cl_cgame.c and cl_ui.c
2011-05-04 15:39:35 +00:00
Thilo Schulz
5769bed4a3
Make Sys_SetEnv behave alike on Windows and Linux
2011-04-18 00:39:15 +00:00
Tim Angus
01a274baf7
* Actually call Sys_PlatformExit
2011-04-09 12:33:56 +00:00
Tim Angus
52ead6fa36
* Crash recovery for com_pipeFile (Lakitu7)
2011-03-30 21:58:31 +00:00
Thilo Schulz
3bf8ec2dab
( #4925 ) - com_pipefile to create a named pipe for sending commands from other processes, patch by Chris Schwarz
2011-03-10 01:01:27 +00:00
Thilo Schulz
ccd24cd647
- Fix unterminated string errors in Q_vsnprintf() on windows. Thanks to Eugene C. for reporting ( #4907 )
...
- Get rid of bigbuffer in Com_sprintf()
- Get rid of Q_snprintf and replace with Com_sprintf()
2011-02-23 16:17:09 +00:00
Thilo Schulz
2b52867b74
Code cleanup patch by devhc
2011-02-08 18:19:31 +00:00
Thilo Schulz
f03ee4b61c
Oops typo.
2011-02-06 18:59:39 +00:00
Thilo Schulz
7bb5906599
Patch by Simon McVittie to improve dynamic library loading ( #4700 )
2011-02-04 17:47:57 +00:00