write config file in indented JSON

This commit is contained in:
Florian Stinglmayr 2023-03-29 18:41:10 +02:00
parent e39dd6ffda
commit 4cd0c02c67

View File

@ -36,6 +36,7 @@ namespace EliteBGS.Util {
filestream.Flush(); filestream.Flush();
using (StreamWriter file = new StreamWriter(filestream, Encoding.UTF8)) { using (StreamWriter file = new StreamWriter(filestream, Encoding.UTF8)) {
var stream = new JsonTextWriter(file); var stream = new JsonTextWriter(file);
stream.Formatting = Formatting.Indented;
serializer.Serialize(stream, global_config); serializer.Serialize(stream, global_config);
} }
} }