Exemple #1
0
        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;
            }
        }
Exemple #2
0
 public static string ToJson(this Opts self) => JsonConvert.SerializeObject(self, KeikoObfuscator.Converter.Settings);