summaryrefslogtreecommitdiff
path: root/tools/mapjson/mapjson.cpp
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:25:52 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-13 14:25:52 -0400
commit23c07589f5c515cbf16db08881142b6ae76dc5ee (patch)
treee014266f2a4007fc05cecd79c7d2558d5b40978c /tools/mapjson/mapjson.cpp
parentaa202b06245aa4c65f10379ecf9dc8c440a049ed (diff)
parent3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (diff)
Merge remote-tracking branch 'origin/master' into sync_bery_crush
Diffstat (limited to 'tools/mapjson/mapjson.cpp')
-rw-r--r--tools/mapjson/mapjson.cpp6
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;