Skip to content

Commit ad9f366

Browse files
committed
Process ex_lang field on login
1 parent f15b06a commit ad9f366

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gpcm/login.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,16 @@ func (g *GameSpySession) login(command common.GameSpyCommand) {
185185
g.GameCode = gamecd
186186
g.Region = region
187187
g.Language = lang
188+
189+
if exLangStr, exLangExists := command.OtherValues["ex_lang"]; exLangExists {
190+
exLang, err := strconv.ParseUint(exLangStr, 10, 8)
191+
192+
if err == nil {
193+
g.Language = byte(exLang)
194+
logging.Info(g.ModuleName, "ex_lang:", aurora.Cyan(exLang))
195+
}
196+
}
197+
188198
g.ConsoleFriendCode = cfc
189199
g.InGameName = ingamesn
190200
g.UnitCode = unitcd

0 commit comments

Comments
 (0)