From 456c5b17f99476f5596e9ad55441db4d87a60031 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 10:18:19 +0100 Subject: feat(assets): Add auto-generation comment to packer output Updates to prepend a warning comment to the generated and files, indicating they are auto-generated and should not be manually edited. --- tools/asset_packer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/asset_packer.cc b/tools/asset_packer.cc index bf8e60b..3442e1b 100644 --- a/tools/asset_packer.cc +++ b/tools/asset_packer.cc @@ -42,11 +42,13 @@ int main(int argc, char *argv[]) { } // Generate assets.h + assets_h_file << "// This file is auto-generated by asset_packer.cc. Do not edit.\n\n"; assets_h_file << "#pragma once\n"; assets_h_file << "#include \n\n"; assets_h_file << "enum class AssetId : uint16_t {\n"; // Generate assets_data.cc header + assets_data_cc_file << "// This file is auto-generated by asset_packer.cc. Do not edit.\n\n"; assets_data_cc_file << "#include \"util/asset_manager.h\"\n"; assets_data_cc_file << "#include \"assets.h\"\n\n"; -- cgit v1.2.3