예제 #1
0
        public override void Load()
        {
            Config = Configuration.Read();

            ServicePointManager.ServerCertificateValidationCallback += (s, cert, chain, sslPolicyErrors) => true;
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

            harmony = HarmonyInstance.Create("Localizer.Main");
            harmony.PatchAll(Assembly.GetExecutingAssembly());
            Patches.DoManualPatches();

            LoadedIndex = new Index();

            downloadMgr = new DownloadMgr();
            Interface.Init();

            AddTranslation();
        }