sdl2 support.
hacky rendertarget stuff. not polished. don't use except for testing. feedback desired. switched file system to use a qofs_t type instead. define FS_64BIT to make it 64bit (standard on 64bit cpus). rewrote zip support, ditching unzip.c. this provided zip64 support, and unicode in zips. changed local address enumeration to not be so stupid. updated ode support a little to match some dp features. changed fs_cache scheme, to not rebuild needlessly. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4596 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b9e46e4fa6
commit
1bb752b582
116 changed files with 3885 additions and 5423 deletions
|
@ -60,6 +60,8 @@ void SV_FlushRedirect (void)
|
|||
if (!*outputbuf)
|
||||
return;
|
||||
|
||||
Log_String(LOG_CONSOLE, va("{\n%s}\n", outputbuf));
|
||||
|
||||
if (sv_redirected == RD_PACKET)
|
||||
{
|
||||
send[0] = 0xff;
|
||||
|
@ -111,6 +113,8 @@ SV_BeginRedirect
|
|||
*/
|
||||
void SV_BeginRedirect (redirect_t rd, int lang)
|
||||
{
|
||||
SV_FlushRedirect();
|
||||
|
||||
sv_redirected = rd;
|
||||
sv_redirectedlang = lang;
|
||||
outputbuf[0] = 0;
|
||||
|
@ -234,6 +238,9 @@ EVENT MESSAGES
|
|||
//Directly print to a client without translating nor printing into an mvd. generally for error messages due to the lack of mvd thing.
|
||||
void SV_PrintToClient(client_t *cl, int level, const char *string)
|
||||
{
|
||||
if (cl->controller)
|
||||
cl = cl->controller;
|
||||
|
||||
switch (cl->protocol)
|
||||
{
|
||||
case SCP_BAD: //bot
|
||||
|
@ -385,7 +392,9 @@ void VARGS SV_BroadcastPrintf (int level, char *fmt, ...)
|
|||
if(strlen(string) >= sizeof(string))
|
||||
Sys_Error("SV_BroadcastPrintf: Buffer stomped\n");
|
||||
|
||||
Sys_Printf ("%s", string); // print to the console
|
||||
//pretend to print on the server, but not to the client's console
|
||||
Sys_Printf ("%s", string); // print to the system console
|
||||
Log_String(LOG_CONSOLE, string); //dump into log
|
||||
|
||||
for (i=0, cl = svs.clients ; i<svs.allocated_client_slots ; i++, cl++)
|
||||
{
|
||||
|
@ -428,7 +437,9 @@ void VARGS SV_BroadcastTPrintf (int level, translation_t stringnum, ...)
|
|||
if(strlen(string) >= sizeof(string))
|
||||
Sys_Error("SV_BroadcastPrintf: Buffer stomped\n");
|
||||
|
||||
//pretend to print on the server, but not to the client's console
|
||||
Sys_Printf ("%s", string); // print to the console
|
||||
Log_String(LOG_CONSOLE, string); //dump into log
|
||||
|
||||
for (i=0, cl = svs.clients ; i<svs.allocated_client_slots ; i++, cl++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue