Skip to content

Commit

Permalink
Add list server to quake config
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRx committed Apr 20, 2024
1 parent b994cde commit b76411b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/quake/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ type ServerConfig struct {
Hostname string `name:"sv_hostname"`
MaxClients int `name:"sv_maxclients"`
Password string `name:"rconpassword"`
ListServer string `name:"sv_master1"`
}

func (c *Config) Marshal() ([]byte, error) {
Expand Down
1 change: 1 addition & 0 deletions internal/quake/server/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ seta sv_allowDownload "0"
seta sv_hostname "quakekube"
seta sv_maxclients "12"
seta rconpassword "changeme"
seta sv_master1 ""
set d0 "seta g_gametype 0 ; map q3dm7 ; set nextmap vstr d1"
set d1 "seta g_gametype 0 ; map q3dm17 ; set nextmap vstr d2"
set d2 "seta g_gametype 4 ; capturelimit 8 ; map q3wctf1 ; set nextmap vstr d3"
Expand Down

0 comments on commit b76411b

Please sign in to comment.