Skip to content

Commit

Permalink
Merge pull request #18 from Melo88/master
Browse files Browse the repository at this point in the history
CustomMod - Save/load
  • Loading branch information
AndrSator committed Feb 18, 2016
2 parents 6af1a99 + bcba0b6 commit 7f476f0
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 7f476f0

Please sign in to comment.