public static Settings Load(string file) { ConfigNode load = ConfigNode.Load(file); Settings settings = new Settings(); if (load == null) { settings.Save(file); return settings; } ConfigNode.LoadObjectFromConfig(settings, load); return settings; }
public static void Load(string file) { mInstance = Settings.Load(file); }