Exemplo n.º 1
0
 /// <summary>
 /// Check framework prerequisites
 /// </summary>
 public void CheckFrameWorkVersion()
 {
     if (!FrameworkVersionChecker.IsVersionInstalled(FrameworkVersions.v3_5) && !FrameworkVersionChecker.IsVersionInstalled(FrameworkVersions.Mono_2_4))
     {
         ShowMessage("Warning, Reflexil is unable to locate .NET Framework 3.5 or Mono 2.4! This is required!");
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Check prerequisites
        /// </summary>
        public void CheckPrerequisites()
        {
            if (!FrameworkVersionChecker.IsVersionInstalled(FrameworkVersions.v3_5) &&
                !FrameworkVersionChecker.IsVersionInstalled(FrameworkVersions.Mono_2_4))
            {
                ShowMessage("Warning, Reflexil is unable to locate .NET Framework 3.5 or Mono 2.4! This is required!");
            }

            // Standalone or ILMerged
            var marker = Type.GetType("Mono.Cecil.MonoCecilReflexilMarker, Mono.Cecil", false) ??
                         Type.GetType("Mono.Cecil.MonoCecilReflexilMarker", false);

            if (marker == null)
            {
                ShowMessage(
                    "Warning, Reflexil is unable to locate customized Mono.Cecil assembly. Please use Mono.Cecil from Reflexil package! (optionally check your GAC).");
            }
        }
Exemplo n.º 3
0
        protected override void OnShown(EventArgs e)
        {
            string str;
            string str2;

            if (!FrameworkVersionChecker.CheckRequiredFrameworkVersion(requiredFrameworkVersion, out str))
            {
                MessageBox.Show(str);
            }
            LauncherStartupDialogForm form = new LauncherStartupDialogForm();

            if (form.localIps.Length > 1)
            {
                form.StartPosition = FormStartPosition.CenterParent;
                if (form.ShowDialog(this) != DialogResult.OK)
                {
                    base.Close();
                    return;
                }
            }
            this.gsConfiguredIp = form.SelectedIp;
            GameServerConfigChanger.EditConfigFiles(@"..\LoadBalancing\GameServer1\bin\Photon.LoadBalancing.dll.config;..\LoadBalancing\GameServer2\bin\Photon.LoadBalancing.dll.config", this.gsConfiguredIp, out str2);
            if (!string.IsNullOrEmpty(str2))
            {
                MessageBox.Show(str2);
                this.label1.Text             = Program.ResourceManager.GetString("launcherFailedToSetIpText");
                this.startStopButton.Enabled = false;
                this.startStopButton.Visible = false;
                this.startStopButton.Text    = null;
            }
            else
            {
                PhotonHandler.StartPhotonApplication("Simple", this.photonWorkingDirectory, out str2);
                if (!string.IsNullOrEmpty(str2))
                {
                    MessageBox.Show(str2);
                    this.label1.Text          = Program.ResourceManager.GetString("launcherFailedToStartText");
                    this.startStopButton.Text = Program.ResourceManager.GetString("launcherStartButtonText");
                }
            }
        }