From 5fa16e90770a73bba17efa23bf8b24a0d48e3a81 Mon Sep 17 00:00:00 2001 From: johannes Date: Fri, 9 Feb 2024 20:09:42 +0100 Subject: added change name and skin functions --- src/demo.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index d73b1a7..f5c346e 100644 --- a/src/demo.c +++ b/src/demo.c @@ -18,6 +18,8 @@ const char headermagic[7] = "TWDEMO\0"; const unsigned char mapmagic[] = {0x6b, 0xe6, 0xda, 0x4a, 0xce, 0xbd, 0x38, 0x0c, 0x9b, 0x5b, 0x12, 0x89, 0xc8, 0x42, 0xd7, 0x80}; +/* readers */ + int readdemoheader(FILE *fp, demoheader *dh) { char magicbuff[sizeof(headermagic)]; @@ -300,6 +302,8 @@ int readdemo(FILE *fp, demo *demo) return 1; } +/* writers */ + int writedemoheader(FILE *fp, demoheader *dh) { unsigned char intbuff[4]; -- cgit v1.2.3