diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2021-05-13 14:24:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 14:24:11 -0400 |
commit | 3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (patch) | |
tree | fdd4a094b5351ce6d9f71418e2859ed4cf1e3ba9 /tools/mapjson/mapjson.cpp | |
parent | 0ccdd940f728d533ffff43288314cb2a3693d183 (diff) | |
parent | 7deccc36b74a9c8344d8f48d9b2e65ae913a3b88 (diff) |
Merge pull request #427 from GriffinRichards/name-mapgroups
Name map groups
Diffstat (limited to 'tools/mapjson/mapjson.cpp')
-rw-r--r-- | tools/mapjson/mapjson.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/mapjson/mapjson.cpp b/tools/mapjson/mapjson.cpp index 44afcaf22..0b07f1208 100644 --- a/tools/mapjson/mapjson.cpp +++ b/tools/mapjson/mapjson.cpp @@ -78,6 +78,10 @@ string generate_map_header_text(Json map_data, Json layouts_data) { ostringstream text; + text << "@\n@ DO NOT MODIFY THIS FILE! It is auto-generated from data/maps/" + << map_data["name"].string_value() + << "/map.json\n@\n\n"; + text << map_data["name"].string_value() << "::\n" << "\t.4byte " << layout["name"].string_value() << "\n"; @@ -514,7 +518,7 @@ string generate_map_constants_text(string groups_filepath, Json groups_data) { int group_num = 0; for (auto &group : groups_data["group_order"].array_items()) { - text << "// Map Group " << group_num << "\n"; + text << "// " << group.string_value() << "\n"; vector<Json> map_ids; size_t max_length = 0; |