Ejemplo n.º 1
0
 private void a3DirText_TextChanged(object sender, TextChangedEventArgs e)
 {
     ConfigManager.write("ArmA3", "path", a3DirText.Text);
 }
Ejemplo n.º 2
0
        static public void a3Launch(bool connectToServer, string server)
        {
            string arma3Path    = regcheck.arma3RegCheck() + "\\arma3.exe";
            string world        = ConfigManager.fetch("ArmA3", "world");
            string customParams = ConfigManager.fetch("ArmA3", "customParameters");
            string mods         = modlister();

            string args = "";

            if (ConfigManager.fetch("ArmA3", "window") == "true")
            {
                args += " -window";
            }
            if (ConfigManager.fetch("ArmA3", "nosplash") == "true")
            {
                args += " -nosplash";
            }
            if (ConfigManager.fetch("ArmA3", "skipIntro") == "true")
            {
                args += " -skipIntro";
            }
            if (ConfigManager.fetch("ArmA3", "noLogs") == "true")
            {
                args += " -noLogs";
            }
            if (ConfigManager.fetch("ArmA3", "noPause") == "true")
            {
                args += " -noPause";
            }
            if (ConfigManager.fetch("ArmA3", "showScriptErrors") == "true")
            {
                args += " -showScriptErrors";
            }
            if (connectToServer == true)
            {
                if (server == "PA Repo")
                {
                    args += " -port=2302 -connect=216.155.136.19 -password=PA";
                }
                else if (server == "Test Outfit Repo")
                {
                    args += " -port=2302 -connect=72.5.102.119 -password=scott";
                }
            }
            if (world != "")
            {
                if (world == "demwaffels")
                {
                    System.Diagnostics.Process.Start("http://www.youtube.com/watch?v=8W5WdS7q3ns");
                    return;
                }
                else
                {
                    args += " -world=" + world;
                }
            }
            if (customParams != "")
            {
                args += " " + customParams;
            }
            if (mods != "")
            {
                args += " -mod=" + mods;
            }

            Process.Start(arma3Path, args);
            logIt.addData("Launched Arma 3 with " + args);
        }