LOTS OF CHANGES. was hoping to get revision 5000 perfect, but really that's never going to happen. this has gone on for too long now.
vulkan, wasapi, quake injector features added. irc, avplug, cef plugins/drivers reworked/updated/added openal reverb, doppler effects added. 'dir' console command now attempts to view clicked files. lots of warning fixes, should now only be deprecation warnings for most targets (depending on compiler version anyway...). SendEntity finally reworked to use flags properly. effectinfo improved, other smc-targetted fixes. mapcluster stuff now has support for linux. .basebone+.baseframe now exist in ssqc. qcc: -Fqccx supports qccx syntax, including qccx hacks. don't expect these to work in fteqw nor dp though. qcc: rewrote function call handling to use refs rather than defs. this makes struct passing more efficient and makes the __out keyword usable with fields etc. qccgui: can cope a little better with non-unicode files. can now represent most quake chars. qcc: suppressed warnings from *extensions.qc git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5000 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5920bf05fb
commit
27a59a0cbc
271 changed files with 101001 additions and 64352 deletions
|
@ -303,6 +303,14 @@ void Sys_Printf (char *fmt, ...)
|
|||
vsnprintf (msg,sizeof(msg)-1, fmt,argptr);
|
||||
va_end (argptr);
|
||||
|
||||
#ifdef SUBSERVERS
|
||||
if (SSV_IsSubServer())
|
||||
{
|
||||
SSV_PrintToMaster(msg);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
//if we're not linebuffered, kill the currently displayed input line, add the new text, and add more output.
|
||||
if (!sys_linebuffer.value)
|
||||
{
|
||||
|
@ -320,7 +328,7 @@ void Sys_Printf (char *fmt, ...)
|
|||
}
|
||||
|
||||
|
||||
if (sys_colorconsole.value)
|
||||
if (sys_colorconsole.value)
|
||||
{
|
||||
wchar_t w;
|
||||
conchar_t *e, *c;
|
||||
|
@ -430,6 +438,9 @@ void Sys_Printf (char *fmt, ...)
|
|||
static char text[2048];
|
||||
unsigned char *p;
|
||||
|
||||
if (sys_nostdout.value || SSV_IsSubServer())
|
||||
return;
|
||||
|
||||
va_start (argptr,fmt);
|
||||
vsnprintf (text,sizeof(text)-1, fmt,argptr);
|
||||
va_end (argptr);
|
||||
|
@ -437,9 +448,6 @@ void Sys_Printf (char *fmt, ...)
|
|||
if (strlen(text) > sizeof(text))
|
||||
Sys_Error("memory overwrite in Sys_Printf");
|
||||
|
||||
if (sys_nostdout.value)
|
||||
return;
|
||||
|
||||
for (p = (unsigned char *)text; *p; p++) {
|
||||
*p &= 0x7f;
|
||||
if ((*p > 128 || *p < 32) && *p != 10 && *p != 13 && *p != 9)
|
||||
|
@ -552,6 +560,12 @@ char *Sys_ConsoleInput (void)
|
|||
static char text[256];
|
||||
int len;
|
||||
|
||||
if (SSV_IsSubServer())
|
||||
{
|
||||
SSV_CheckFromMaster();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!stdin_ready || !do_stdin)
|
||||
return NULL; // the select didn't say it was ready
|
||||
stdin_ready = false;
|
||||
|
@ -630,7 +644,7 @@ static void Friendly_Crash_Handler(int sig, siginfo_t *info, void *vcontext)
|
|||
#if defined(__i386__)
|
||||
//x86 signals don't leave the stack in a clean state, so replace the signal handler with the real crash address, and hide this function
|
||||
ucontext_t *uc = vcontext;
|
||||
array[1] = uc->uc_mcontext.gregs[REG_EIP];
|
||||
array[1] = (void*)uc->uc_mcontext.gregs[REG_EIP];
|
||||
firstframe = 1;
|
||||
#elif defined(__amd64__)
|
||||
//amd64 is sane enough, but this function and the libc signal handler are on the stack, and should be ignored.
|
||||
|
@ -715,6 +729,12 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef SUBSERVERS
|
||||
if (COM_CheckParm("-clusterslave"))
|
||||
isClusterSlave = true;
|
||||
#endif
|
||||
|
||||
parms.basedir = "./";
|
||||
TL_InitLanguages(parms.basedir);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue