diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-09 20:09:42 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-09 20:09:42 +0100 |
| commit | 5fa16e90770a73bba17efa23bf8b24a0d48e3a81 (patch) | |
| tree | 519c319762ba955e0a6788696b33dcbcbecd04a2 /src/demo.c | |
| parent | 26b74cfde46e3ed0be4759946ab5ab43cc5d669b (diff) | |
added change name and skin functions
Diffstat (limited to 'src/demo.c')
| -rw-r--r-- | src/demo.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]; |
