diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-06 19:56:18 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-06 19:56:18 +0100 |
| commit | edff23604a6ae5b46980f7b2f9e9f4f36155189a (patch) | |
| tree | 6b811e7538f5cacb0f63c2bf0a3783e8356b0597 /src/main.c | |
| parent | ec6a5c1ff3bb7731e17b798f9bbfdb0aedf94baa (diff) | |
added write demo functions
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -121,6 +121,22 @@ int main() demotimeline dt; demomap dm; + readdemoheader(fp, &dh); + readdemotimeline(fp, &dt); + readdemomap(fp, &dm, dh.mapsize, dh.version); + + writedemoheader(op, &dh); + writedemotimeline(op, &dt); + writedemomap(op, &dm, dh.mapsize, dh.version); + + fclose(fp); + fclose(op); + + /* + demoheader dh; + demotimeline dt; + demomap dm; + int ret = readdemoheader(fp, &dh); dm.data = (unsigned char *)malloc(dh.mapsize); @@ -152,7 +168,7 @@ int main() putc(c, op); } } while (c != EOF); - + */ return EXIT_SUCCESS; /* |
