The server can now stream an MVD to multiple destinations at once. mvdrecord does not stop the old demo from recording. Please note, this hasn't been exaustivly tested.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@619 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1719ea7dc6
commit
d217414289
3 changed files with 518 additions and 396 deletions
|
@ -542,11 +542,6 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
FILE *file;
|
|
||||||
int tcpsocket;
|
|
||||||
int writedest; //doesn't bother if it's not valid demo_both is safe
|
|
||||||
|
|
||||||
|
|
||||||
demobuf_t *dbuf;
|
demobuf_t *dbuf;
|
||||||
dbuffer_t dbuffer;
|
dbuffer_t dbuffer;
|
||||||
sizebuf_t datagram;
|
sizebuf_t datagram;
|
||||||
|
@ -564,13 +559,11 @@ typedef struct
|
||||||
int lastwritten;
|
int lastwritten;
|
||||||
demo_frame_t frames[DEMO_FRAMES];
|
demo_frame_t frames[DEMO_FRAMES];
|
||||||
demoinfo_t info[MAX_CLIENTS];
|
demoinfo_t info[MAX_CLIENTS];
|
||||||
int size;
|
|
||||||
qboolean disk;
|
|
||||||
void *dest;
|
|
||||||
qbyte *mfile;
|
|
||||||
qbyte buffer[20*MAX_QWMSGLEN];
|
qbyte buffer[20*MAX_QWMSGLEN];
|
||||||
int bufsize;
|
int bufsize;
|
||||||
int forceFrame;
|
int forceFrame;
|
||||||
|
|
||||||
|
struct mvddest_s *dest;
|
||||||
} demo_t;
|
} demo_t;
|
||||||
|
|
||||||
|
|
||||||
|
@ -655,10 +648,6 @@ typedef struct
|
||||||
int language; //the server operators language
|
int language; //the server operators language
|
||||||
|
|
||||||
levelcache_t *levcache;
|
levelcache_t *levcache;
|
||||||
|
|
||||||
//mvd demo stuff
|
|
||||||
qbyte *demomem;
|
|
||||||
int demomemsize;
|
|
||||||
} server_static_t;
|
} server_static_t;
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1768,9 +1768,6 @@ void SV_SendMVDMessage(void)
|
||||||
|
|
||||||
demo.parsecount++;
|
demo.parsecount++;
|
||||||
MVDSetMsgBuf(demo.dbuf,&demo.frames[demo.parsecount&DEMO_FRAMES_MASK].buf);
|
MVDSetMsgBuf(demo.dbuf,&demo.frames[demo.parsecount&DEMO_FRAMES_MASK].buf);
|
||||||
|
|
||||||
if (sv_demoMaxSize.value && demo.size > sv_demoMaxSize.value*1024)
|
|
||||||
SV_MVDStop(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue