From edff23604a6ae5b46980f7b2f9e9f4f36155189a Mon Sep 17 00:00:00 2001 From: johannes Date: Tue, 6 Feb 2024 19:56:18 +0100 Subject: added write demo functions --- inc/demo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc/demo.h') diff --git a/inc/demo.h b/inc/demo.h index 6a8a04a..379c3e8 100644 --- a/inc/demo.h +++ b/inc/demo.h @@ -34,7 +34,7 @@ typedef struct typedef struct { unsigned char sha256[32]; - unsigned char *data; + char *data; } demomap; typedef struct @@ -110,4 +110,8 @@ int readdemomap(FILE *demofile, demomap *map, int mapsize, unsigned char version /* Will allocate memory if chunk is snap, delta or message */ int readdemochunk(FILE *demofile, demochunk *chunk, unsigned char version); +int writedemoheader(FILE *outfile, demoheader *header); +int writedemotimeline(FILE *outfile, demotimeline *timeline); +int writedemomap(FILE *outfile, demomap *map, int mapsize, unsigned char version); + #endif // DEMO_H -- cgit v1.2.3