try to fix gc login

This commit is contained in:
2025-10-26 16:40:13 +01:00
parent d9e6402c03
commit e7e068d4d5

View File

@@ -365,10 +365,14 @@ func (dml *DemoMatchLoader) setPlaying() {
func (dml *DemoMatchLoader) greetGC() { func (dml *DemoMatchLoader) greetGC() {
for !dml.GCReady { for !dml.GCReady {
var iNull uint32 = 0
log.Debugf("[DL] Sending GC greeting") log.Debugf("[DL] Sending GC greeting")
msg := protobuf.CMsgClientHello{} msg := protobuf.CMsgClientHello{}
pVersion := steamlang.MsgClientLogon_CurrentProtocol pVersion := steamlang.MsgClientLogon_CurrentProtocol
msg.Version = &pVersion msg.Version = &pVersion
msg.ClientSessionNeed = &iNull
msg.ClientLauncher = &iNull
msg.SteamLauncher = &iNull
dml.client.GC.Write(gamecoordinator.NewGCMsgProtobuf(APPID, uint32(protobuf.EGCBaseClientMsg_k_EMsgGCClientHello), &msg)) dml.client.GC.Write(gamecoordinator.NewGCMsgProtobuf(APPID, uint32(protobuf.EGCBaseClientMsg_k_EMsgGCClientHello), &msg))
time.Sleep(1 * time.Second) time.Sleep(1 * time.Second)
} }