/* * SV_Demo_WriteMessage * * Writes given message to the demofile */ static void SV_Demo_WriteMessage( msg_t *msg ) { assert( svs.demo.file ); if( !svs.demo.file ) return; SNAP_RecordDemoMessage( svs.demo.file, msg, 0 ); }
/* * TV_Upstream_WriteDemoMessage * * Dumps the current net message, prefixed by the length */ void TV_Upstream_WriteDemoMessage( upstream_t *upstream, msg_t *msg ) { if( upstream->demo.filehandle <= 0 ) { upstream->demo.recording = qfalse; return; } // the first eight bytes are just packet sequencing stuff SNAP_RecordDemoMessage( upstream->demo.filehandle, msg, 8 ); }