diff --git a/src/MainForm.Designer.cs b/src/MainForm.Designer.cs index f8f279a..9437a25 100644 --- a/src/MainForm.Designer.cs +++ b/src/MainForm.Designer.cs @@ -57,7 +57,7 @@ private void InitializeComponent() this.GroupBox5 = new System.Windows.Forms.GroupBox(); this.AddLaunchParams = new System.Windows.Forms.Button(); this.GroupBox6 = new System.Windows.Forms.GroupBox(); - this.Rcon = new System.Windows.Forms.TextBox(); + this.RCON = new System.Windows.Forms.TextBox(); this.Insecure = new System.Windows.Forms.CheckBox(); this.DevMessages = new System.Windows.Forms.CheckBox(); this.RunServer = new System.Windows.Forms.Button(); @@ -428,7 +428,7 @@ private void InitializeComponent() // // GroupBox6 // - this.GroupBox6.Controls.Add(this.Rcon); + this.GroupBox6.Controls.Add(this.RCON); this.GroupBox6.Controls.Add(this.AddLaunchParams); this.GroupBox6.Controls.Add(this.Insecure); this.GroupBox6.Controls.Add(this.DevMessages); @@ -459,13 +459,13 @@ private void InitializeComponent() this.GroupBox6.TabStop = false; this.GroupBox6.Text = "Game Configuration"; // - // Rcon + // RCON // - this.Rcon.Location = new System.Drawing.Point(332, 132); - this.Rcon.Name = "Rcon"; - this.Rcon.Size = new System.Drawing.Size(91, 20); - this.Rcon.TabIndex = 7; - this.Rcon.UseSystemPasswordChar = true; + this.RCON.Location = new System.Drawing.Point(332, 132); + this.RCON.Name = "RCON"; + this.RCON.Size = new System.Drawing.Size(91, 20); + this.RCON.TabIndex = 7; + this.RCON.UseSystemPasswordChar = true; // // Insecure // @@ -939,7 +939,7 @@ private void InitializeComponent() private System.Windows.Forms.Label Label10; private System.Windows.Forms.Label label13; private System.Windows.Forms.Label label14; - private System.Windows.Forms.TextBox Rcon; + private System.Windows.Forms.TextBox RCON; private System.Windows.Forms.TextBox PasswordLogin; private System.Windows.Forms.ToolStripMenuItem SrcdsLaunchOptions; private System.Windows.Forms.CheckBox SaveRCON; diff --git a/src/MainForm.cs b/src/MainForm.cs index d459121..0cba19a 100644 --- a/src/MainForm.cs +++ b/src/MainForm.cs @@ -59,7 +59,7 @@ private void SaveSettings_Click(object sender, EventArgs e) bool user = interactable[i].Name == Username.Name && !AnonymousLogin.Checked; bool pass = interactable[i].Name == PasswordLogin.Name && !AnonymousLogin.Checked; - bool rcon = interactable[i].Name == Rcon.Name; + bool rcon = interactable[i].Name == RCON.Name; if (user && !SaveLoginDetails.Checked || @@ -229,7 +229,7 @@ private void RunServerButton_Click(object sender, EventArgs e) string arguments = $"-console {addDedicatedIfCS2} -game {GameInfo[GameListRunTab.SelectedIndex][InfoEnum.INTERNAL_NAME]} -port {UDPPort.Text} +hostname \"{Hostname.Text}\" " + $"+map {MapList.SelectedItem} +maxplayers {MaxPlayers.Text} +sv_lan {NetworkType.SelectedIndex} " + - $"+rcon_password {Rcon.Text} +sv_password {PasswordServer.Text} " + + $"+rcon_password {RCON.Text} +sv_password {PasswordServer.Text} " + $"{buttonParams} {AdditionalCommands.Text}"; @@ -497,7 +497,7 @@ private void MapList_SelectedIndexChanged(object sender, EventArgs e) private void HideRCON_CheckedChanged(object sender, EventArgs e) { - Rcon.UseSystemPasswordChar = HideRCON.Checked; + RCON.UseSystemPasswordChar = HideRCON.Checked; } private TextBox GetMenuForResponsibleLaunchParam(object objSender)