From 34afbd6ca21d2b960573d787e6eae46fa86b200e Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 5 Mar 2026 22:55:56 +0100 Subject: style: run clang-format to adhere to coding style --- tools/asset_packer.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/asset_packer.cc') diff --git a/tools/asset_packer.cc b/tools/asset_packer.cc index 0d48906..c982a39 100644 --- a/tools/asset_packer.cc +++ b/tools/asset_packer.cc @@ -80,8 +80,8 @@ static bool ParseProceduralParams(const std::string& params_str, // Helper struct to hold all information about an asset during parsing struct AssetBuildInfo { std::string name; - std::string filename; // Original filename for static assets - std::string asset_type; // "STATIC", "PROC", "PROC_GPU", "MP3" + std::string filename; // Original filename for static assets + std::string asset_type; // "STATIC", "PROC", "PROC_GPU", "MP3" std::string proc_func_name; // Function name string std::vector proc_params; // Parameters for procedural function @@ -453,7 +453,8 @@ int main(int argc, char* argv[]) { } else if (compression_type_str == "MP3") { info.asset_type = "MP3"; } else if (compression_type_str != "NONE") { - fprintf(stderr, "Warning: Unknown compression type '%s' for asset: %s\n", + fprintf(stderr, + "Warning: Unknown compression type '%s' for asset: %s\n", compression_type_str.c_str(), info.name.c_str()); } @@ -545,9 +546,8 @@ int main(int argc, char* argv[]) { fprintf(assets_data_cc_file, " { "); if (info.asset_type == "PROC" || info.asset_type == "PROC_GPU") { fprintf(assets_data_cc_file, "nullptr, 0, AssetType::%s, %s, %s, %zu", - info.asset_type.c_str(), - info.func_name_str_name.c_str(), info.params_array_name.c_str(), - info.proc_params.size()); + info.asset_type.c_str(), info.func_name_str_name.c_str(), + info.params_array_name.c_str(), info.proc_params.size()); } else { fprintf(assets_data_cc_file, "%s, ASSET_SIZE_%s, AssetType::%s, nullptr, nullptr, 0", -- cgit v1.2.3