public void StartClientBuild()
        {
            Process minecraft = new Process();
            string  libString = "";

            foreach (string file in Directory.GetFiles(appdata + "\\.technic\\cache", "*.jar", SearchOption.AllDirectories))
            {
                if (!file.Contains("minecraft_"))
                {
                    libString += file + ";";
                }
            }

            //minecraft.StartInfo.FileName = "java.exe";
            //minecraft.StartInfo.WorkingDirectory = cd + "\\tests\\ClientBuild";
            //minecraft.StartInfo.Arguments = "-Djava.library.path=\"bin\\natives\" -cp \""+libString+"bin\\modpack.jar;bin\\minecraft.jar\" net.minecraft.client.main.Main --username myusername --accessToken myaccesstoken --userProperties {} --version 1.7.10";

            //minecraft.Start();

            Proci.StartLauncher();
        }
예제 #2
0
 private void setupButton_Click(object sender, EventArgs e)
 {
     Process.Start("http://www.technicpack.net/modpack/dummy-pack-1710.694377");
     Proci.StartLauncher();
     MessageBox.Show("Do this:\n1) Add the modpack on the page that just opened to your list.\n2) Install and run this new modpack.\n3) After minecraft has started, close it again.\n4) In the future, use this pack when testing your mods.", "Do These Things !!!");
 }