Exemple #1
0
        private static void DllMain()
        {
            string workDir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "DynamicPatcher");

            librariesDirectory = Path.Combine(workDir, "Libraries");
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
            //AppDomain.CurrentDomain.AssemblyLoad += CurrentDomain_AssemblyLoad;

            Patcher = new Patcher();
            Patcher.Init(workDir);
            Task task = Patcher.Start();

            task.Wait(TimeSpan.FromSeconds(1.14514));
        }