+2
src/bini.c
+2
src/bini.c
-14
tools/newgame.c
-14
tools/newgame.c
···
87
87
kf_loginfo("saving world to %s (%lu bytes uncompressed)", worldpath, len);
88
88
kf_timeit("save world", kf_world_save(world, compress, worldpath));
89
89
90
-
if (compress)
91
-
{
92
-
char worldxzpath[4096] = {0};
93
-
strcpy(worldxzpath, path);
94
-
strcpy(&worldxzpath[0] + strlen(path), "/map.bin.xz");
95
-
kf_timeit("compress world", {
96
-
if (!kf_compress(worldpath, worldxzpath))
97
-
{
98
-
KF_THROW("failed to compress %s", worldpath);
99
-
}
100
-
});
101
-
remove(worldpath); /* no longer needed */
102
-
}
103
-
104
90
free(world);
105
91
}