We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f46ba50 commit 43b6020Copy full SHA for 43b6020
1 file changed
CP2077SaveEditor/Views/Form1.cs
@@ -1179,7 +1179,15 @@ private void factsSaveButton_Click(object sender, EventArgs e)
1179
saveWindow.Filter = "Text File|*.txt";
1180
if (saveWindow.ShowDialog() == DialogResult.OK)
1181
{
1182
- File.WriteAllText(saveWindow.FileName, JsonConvert.SerializeObject(activeSaveFile.GetKnownFacts(), Formatting.Indented));
+ var facts = activeSaveFile.GetKnownFacts();
1183
+ var final = new List<KeyValuePair<string, uint>>(facts.Count);
1184
+
1185
+ foreach (var singleFact in facts)
1186
+ {
1187
+ final.Add(new KeyValuePair<string, uint>(activeSaveFile.KnownFacts[singleFact.FactName], singleFact.Value));
1188
+ }
1189
1190
+ File.WriteAllText(saveWindow.FileName, JsonConvert.SerializeObject(final, Formatting.Indented));
1191
}
1192
1193
0 commit comments