medfall

A super great game engine
Log | Files | Refs

commit a85591b173cc31d0caaeb884510ae088c3aa9b2b
parent e58dbee7eb3eb08b5bb7835c7b182b95f50abf16
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Apr 23 23:17:12 +0300

ggformat fixes

Diffstat:
pp.cc | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/pp.cc b/pp.cc @@ -107,7 +107,7 @@ static void write_compressed_file( const void * data, size_t len, const char * f size_t compressed_len = LZ4_compress_HC( ( const char * ) data, compressed, len, LZ4_compressBound( len ), COMPRESSION_LEVEL ); - printf( "compressed %zu to %zu (%.2f%%)\n", len, compressed_len, 100.0f * compressed_len / len ); + ggprint( "{}: compressed {} to {} ({.2})\n", path, len, compressed_len, 100.0f * compressed_len / len ); // write FILE * file = fopen( path.c_str(), "wb" ); @@ -145,9 +145,9 @@ static void write_tile( } } - printf( "writing %d_%d%s... ", tx, ty, extension.c_str() ); - write_compressed_file( tile.ptr(), tile.num_bytes(), - "%s/%d_%d%s", dir.c_str(), tx, ty, extension.c_str() ); + ggprint( "writing {}_{}{}... ", tx, ty, extension.c_str() ); + write_compressed_file( arena, tile.ptr(), tile.num_bytes(), + "{}/{}_{}{}", dir.c_str(), tx, ty, extension.c_str() ); } static void write_tile_quadtree( @@ -181,9 +181,9 @@ static void write_tile_quadtree( array< HeightmapQuadTreeNode > nodes = memarena_push_array( arena, HeightmapQuadTreeNode, num_nodes ); HeightmapQuadTree qt = heightmap_build_quadtree( &hm, nodes ); - printf( "writing %d_%d_quadtree.lz4... ", tx, ty ); - write_compressed_file( qt.nodes.ptr(), qt.nodes.num_bytes(), - "%s/%d_%d_quadtree.lz4", dir.c_str(), tx, ty ); + ggprint( "writing {}_{}_quadtree.lz4... ", tx, ty ); + write_compressed_file( arena, qt.nodes.ptr(), qt.nodes.num_bytes(), + "{}/{}_{}_quadtree.lz4", dir.c_str(), tx, ty ); } #if PLATFORM_LINUX