Ejemplo n.º 1
0
        static Core()
        {
            webClient = new WebClient();
            webClient.Headers.Add("User-Agent", "Unity web player");

            AssemblyGenerationNeeded = MelonLaunchOptions.Il2CppAssemblyGenerator.ForceRegeneration;

            GameAssemblyPath = Path.Combine(MelonUtils.GameDirectory, "GameAssembly.dll");
            ManagedPath      = string.Copy(MelonUtils.GetManagedDirectory());

            BasePath = Path.GetDirectoryName(typeof(Core).Assembly.Location);
        }
Ejemplo n.º 2
0
        static Core()
        {
            ServicePointManager.Expect100Continue = true;
            ServicePointManager.SecurityProtocol  = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | (SecurityProtocolType)3072;

            webClient = new WebClient();
            webClient.Headers.Add("User-Agent", "Unity web player");

            AssemblyGenerationNeeded = MelonLaunchOptions.Il2CppAssemblyGenerator.ForceRegeneration;

            GameAssemblyPath = Path.Combine(MelonUtils.GameDirectory, "GameAssembly.dll");
            ManagedPath      = string.Copy(MelonUtils.GetManagedDirectory());

            BasePath = Path.GetDirectoryName(typeof(Core).Assembly.Location);
        }