aboutsummaryrefslogtreecommitdiff
path: root/convanim.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 23:12:46 +1000
committerquou <quou@disroot.org>2024-10-01 23:12:46 +1000
commit6c5ba07bdba2de9d903e42f264be488661975855 (patch)
tree2ec08592a39b133287efa03714dfad89d072870e /convanim.c
parent5331a6aafbbd03d53918b53565b81dac14ec30ca (diff)
Pad asset files to align properly.
Diffstat (limited to 'convanim.c')
-rw-r--r--convanim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/convanim.c b/convanim.c
index 80a1b4a..0be693e 100644
--- a/convanim.c
+++ b/convanim.c
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include <string.h>
+#include "convcom.c"
+
#define max_rects 32
const char* next_line(const char* line) {
@@ -73,6 +75,7 @@ int main(int argc, char** argv) {
fwrite(&fc, 1, 4, outfile);
fwrite(&speed, 1, 4, outfile);
fwrite(rects, fc, sizeof r, outfile);
+ pad_file(8 + fc * sizeof r, outfile);
fclose(outfile);
}
return 0;