@@ -112,6 +112,8 @@ type RHostMatchSettings struct {
112112 Map string `json:"map"`
113113 BlueBots []string `json:"blueBots"`
114114 OrangeBots []string `json:"orangeBots"`
115+ Launcher string `json:"launcher"`
116+ GamePath string `json:"gamePath"`
115117}
116118
117119func (a * App ) StartRHostMatch (settings RHostMatchSettings ) (string , error ) {
@@ -145,6 +147,19 @@ func (a *App) StartRHostMatch(settings RHostMatchSettings) (string, error) {
145147 return "" , errors .New ("Couldn't connect to RLBotServer" )
146148 }
147149
150+ var launcher flat.Launcher
151+ switch settings .Launcher {
152+ case "steam" :
153+ launcher = flat .LauncherSteam
154+ case "epic" :
155+ launcher = flat .LauncherEpic
156+ case "custom" :
157+ launcher = flat .LauncherCustom
158+ default :
159+ println ("No launcher chosen, defaulting to steam" )
160+ launcher = flat .LauncherSteam
161+ }
162+
148163 err = conn .SendPacket (& flat.MatchSettingsT {
149164 PlayerConfigurations : []* flat.PlayerConfigurationT {},
150165 ScriptConfigurations : []* flat.ScriptConfigurationT {
@@ -162,6 +177,8 @@ func (a *App) StartRHostMatch(settings RHostMatchSettings) (string, error) {
162177 GameMapUpk : settings .Map ,
163178 EnableStateSetting : true ,
164179 EnableRendering : true ,
180+ Launcher : launcher ,
181+ GamePath : settings .GamePath ,
165182 })
166183 if err != nil {
167184 return "" , errors .New ("Couldn't send matchsettings packet" )
0 commit comments