diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-05-13 14:26:34 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-05-13 14:26:34 -0400 |
commit | e82080d42bbb81b2add8bef5c073cc353dfea307 (patch) | |
tree | ce62aa2f8fdc375922228144285959a7eb471764 /tools | |
parent | b1603bba92dac95fd1621978f21ee9bf107f7b6a (diff) | |
parent | 3dce3407d5f9bca69d61b1cf1b314fb1e921d572 (diff) |
Merge remote-tracking branch 'origin/master' into modern_ld
Diffstat (limited to 'tools')
-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; |