diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-05 22:55:56 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-05 22:55:56 +0100 |
| commit | 34afbd6ca21d2b960573d787e6eae46fa86b200e (patch) | |
| tree | 08450aeff4c67fb300428e705910265e6cd59943 /tools/asset_packer.cc | |
| parent | 35c9ebb0a7ce0e726f631a2b04bb26098926cfab (diff) | |
style: run clang-format to adhere to coding style
Diffstat (limited to 'tools/asset_packer.cc')
| -rw-r--r-- | tools/asset_packer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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<float> 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", |
