static void StartupSettings() { if (File.Exists("Opt.json")) { current = Opts.FromJson(File.ReadAllText("Opt.json")); } else { var sett = new Opts() { SkipPrivateMethods = false, SkipPublicFields = false, SkipPublicMethods = false }; File.WriteAllText("Opt.json", sett.ToJson()); current = sett; } }
public static string ToJson(this Opts self) => JsonConvert.SerializeObject(self, KeikoObfuscator.Converter.Settings);