Skip to content

Commit

Permalink
Added log message for saving and loading config
Browse files Browse the repository at this point in the history
  • Loading branch information
thorwin99 committed Sep 18, 2019
1 parent ac6974b commit c60dd85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SEWorldGenPlugin/MySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public void LoadSettings()
using (var reader = FileUtils.ReadFileInGlobalStorage(FILENAME))
{
MyObjectBuilder_PluginSettings saveFile = FileUtils.SerializeFromXml<MyObjectBuilder_PluginSettings>(reader.ReadToEnd());
MyLog.Default.WriteLine("Loading SEWorldGenPlugin config file: " + FileUtils.SerializeToXml(saveFile));
if (saveFile != null)
Settings = saveFile;
}
Expand All @@ -61,6 +62,8 @@ public void SaveSettings()

string xml = FileUtils.SerializeToXml(Settings);

MyLog.Default.WriteLine("Saving SEWorldGenPlugin config file: " + xml);

using (var writer = FileUtils.WriteFileInGlobalStorage(FILENAME))
{
writer.Write(xml);
Expand Down

0 comments on commit c60dd85

Please sign in to comment.