summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8a14140..e33594a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -131,6 +131,15 @@ int main()
readdemochunks(fp, &dd, dh.version);
+ for (int i = 0; i < dd.numchunks; i++)
+ {
+ if (dd.chunks[i].type == DEMOTICK)
+ {
+ writedemotick(op, dd.chunks[i].data.tick, dh.version);
+ exit(0);
+ }
+ }
+
fclose(fp);
fclose(op);