Closed vikpe closed 1 year ago
Look good, @vikpe .
But it will still contain those ???? packet separation characters, right? Do we want to remove them?
Those are coming - I think - from SV_FlushRedirect() in sv_send.c: `void SV_FlushRedirect (void) { char send1[OUTPUTBUF_SIZE + 6];
if (sv_redirected == RD_PACKET)
{
send1[0] = 0xff;
send1[1] = 0xff;
send1[2] = 0xff;
send1[3] = 0xff;
send1[4] = A2C_PRINT;
memcpy (send1 + 5, outputbuf, strlen(outputbuf) + 1);
`
Those 0xff characters, exactly 4, should be those ???? things.
Now, as we don't know who or what uses them, maybe add an exception in SV_FlushRedirect() that if this is a 'laststats' call, we don't add those into the beginning of the packet. What do you think?
But it will still contain those ???? packet separation characters, right? Do we want to remove them?
All connectionless packet commands use them, lets keep it that way.
Usage
Response
results found
no results found: