improved demo recording
The demo data is collected, hashed and compressed fully in memory, mostly in a worker thread. While in memory, each demo is identified by an unique sequence number, which is, for example, used to request a download by the client. If so configured, the demo is written to file by the worker thread. If F10 is pressed later than two minutes into the next game, instead of downloading the last game, the current game is scheduled to be automatically downloaded when it ends. At the end of a game, all clients and the server sign the demo file.
This commit is contained in:
+1
-10
@@ -430,15 +430,6 @@ struct clientidentity
|
||||
int clientnum;
|
||||
};
|
||||
|
||||
struct demofile
|
||||
{
|
||||
string info;
|
||||
string file;
|
||||
uchar *data;
|
||||
int len;
|
||||
vector<clientidentity> clientssent;
|
||||
};
|
||||
|
||||
void startgame(const char *newname, int newmode, int newtime = -1, bool notify = true);
|
||||
void disconnect_client(int n, int reason = -1);
|
||||
void sendiplist(int receiver, int cn = -1);
|
||||
@@ -487,7 +478,7 @@ const char *messagenames[SV_NUM] =
|
||||
"SV_SWITCHNAME", "SV_SWITCHSKIN", "SV_SWITCHTEAM",
|
||||
"SV_CLIENT",
|
||||
"SV_EXTENSION",
|
||||
"SV_MAPIDENT", "SV_HUDEXTRAS", "SV_POINTS"
|
||||
"SV_MAPIDENT", "SV_HUDEXTRAS", "SV_POINTS", "SV_DEMOCHECKSUM", "SV_DEMOSIGNATURE",
|
||||
};
|
||||
|
||||
const char *entnames[] =
|
||||
|
||||
Reference in New Issue
Block a user