diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-28 10:18:19 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-28 10:18:19 +0100 |
| commit | 456c5b17f99476f5596e9ad55441db4d87a60031 (patch) | |
| tree | 9efa7c8d4b1b1c30ab20204808f10ed4de48b2da /tools/asset_packer.cc | |
| parent | 0db129c1dde77d82117742cc12caa05cb814914b (diff) | |
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.
Diffstat (limited to 'tools/asset_packer.cc')
| -rw-r--r-- | tools/asset_packer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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 <cstdint>\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"; |
