private Settings(bool load) { try { if (!load) { return; } if (!File.Exists(path: SettingsFile)) { return; } FullAutoStrut.DebugLog(m: $"Loading Settings: {SettingsFile}"); ConfigNode.LoadObjectFromConfig(obj: this, node: ConfigNode.Load(fileFullName: SettingsFile)); } catch (Exception e) { FullAutoStrut.DebugLog(m: e); } }
private static void DebugLog(object m) => FullAutoStrut.DebugLog(m: m);
private static void DebugLog(this Exception e) => FullAutoStrut.DebugLog(m: e);