Skip to content

Commit

Permalink
CustomMod - Save
Browse files Browse the repository at this point in the history
When use the checkbox "Custom Mod", you can save it and load it later
without put the "custom mod" again.
  • Loading branch information
Melo88 authored and Melo88 committed Feb 18, 2016
1 parent 6af1a99 commit bcba0b6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Source Code/SteamCMD GUI/MainMenu.vb
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,13 @@ Public Class MainMenu

.WriteStartElement("Server-Config")

.WriteStartElement("Mod")
.WriteString(ModList.Text)
If ModList.Enabled = False Then
.WriteStartElement("CustomMod")
.WriteString(CustomModTextBox.Text)
Else
.WriteStartElement("Mod")
.WriteString(ModList.Text)
End If
.WriteEndElement()

.WriteStartElement("HostName")
Expand Down Expand Up @@ -786,6 +791,10 @@ Public Class MainMenu
'Define the game with ModList.Text
ModList_SelectedIndex()
End If
If (XmlConfig.Name = "CustomMod") Then
CustomModTextBox.Text = XmlConfig.ReadInnerXml.ToString
CustomModCheckBox.Checked = True
End If
If (XmlConfig.Name = "Map") Then
MapList.Enabled = True
ServerMap = XmlConfig.ReadInnerXml.ToString()
Expand Down

0 comments on commit bcba0b6

Please sign in to comment.