summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-09 20:09:42 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-09 20:09:42 +0100
commit5fa16e90770a73bba17efa23bf8b24a0d48e3a81 (patch)
tree519c319762ba955e0a6788696b33dcbcbecd04a2 /src/demo.c
parent26b74cfde46e3ed0be4759946ab5ab43cc5d669b (diff)
added change name and skin functions
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];