示例#1
0
        // Handles Testing Mods on the Main Form (before Elsword is executed).
        private void TestMods()
        {
            this.Command1.Enabled = false;
            this.Command2.Enabled = false;
            this.Command4.Enabled = false;
            this.Command5.Enabled = false;
            this.packToolStripMenuItem.Enabled     = false;
            this.unpackToolStripMenuItem.Enabled   = false;
            this.testModsToolStripMenuItem.Enabled = false;
            this.launcherToolStripMenuItem.Enabled = false;
            var di = new DirectoryInfo(Application.StartupPath + "\\koms");

            foreach (var fi in di.GetFiles("*.kom"))
            {
                var kom_file = fi.Name;

                // do not copy kom files that are in the koms directory but cannot be found to copy from taget directory to the backup directory to restore later.
                KOMManager.CopyKomFiles(kom_file, Application.StartupPath + "\\koms\\", this.elsDir + "\\data");
            }

            var tr3 = new Thread(ExecutionManager.RunElswordDirectly)
            {
                Name = "Classes.ExecutionManager.RunElswordDirectly",
            };

            tr3.Start();
            this.testModsTmr.Enabled = true;
        }
示例#2
0
        // Handles Testing Mods on the Main Form (before Elsword is executed).
        private void TestMods()
        {
            this.SetControlState(false, "Testing Mods...", "Testing Mods...");
            var di = new DirectoryInfo(Application.StartupPath + "\\koms");

            foreach (var fi in di.GetFiles("*.kom"))
            {
                var kom_file = fi.Name;

                // do not copy kom files that are in the koms directory but cannot be found to copy from taget directory to the backup directory to restore later.
                KOMManager.CopyKomFiles(kom_file, Application.StartupPath + "\\koms\\", this.elsDir + "\\data");
            }

            var tr3 = new Thread(ExecutionManager.RunElswordDirectly)
            {
                Name = nameof(ExecutionManager.RunElswordDirectly),
            };

            tr3.Start();
            this.testModsTmr.Enabled = true;
        }