use ESCAPE_CONTROLS_ONLY when writing JSON

This commit is contained in:
Martin Michelsen
2024-01-24 21:03:48 -08:00
parent 0fff4ebd4e
commit 082f88d242
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ void TeamIndex::Team::save_config() const {
{"RewardKeys", std::move(reward_keys_json)},
{"RewardFlags", this->reward_flags},
});
save_file(this->json_filename(), root.serialize(JSON::SerializeOption::FORMAT | JSON::SerializeOption::HEX_INTEGERS));
save_file(this->json_filename(), root.serialize(JSON::SerializeOption::FORMAT | JSON::SerializeOption::HEX_INTEGERS | JSON::SerializeOption::ESCAPE_CONTROLS_ONLY));
}
void TeamIndex::Team::load_flag() {