summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c4
1 files changed, 4 insertions, 0 deletions
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];