mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 04:03:58 +00:00
Compress large packets
This commit is contained in:
@@ -226,9 +226,7 @@ public class PlayerInstance(PlayerGameData data)
|
||||
continue;
|
||||
}
|
||||
|
||||
//ToDo
|
||||
//Temporary fix for login issues(need to handle LoginRsp properly with zlib.)
|
||||
//proto.Attrs[ToPackedAttrKey(gid, sid)] = val;
|
||||
proto.Attrs[ToPackedAttrKey(gid, sid)] = val;
|
||||
proto.Attrs[ToShiftedAttrKey(gid, sid)] = val;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ public class PacketRspLogin : BasePacket
|
||||
};
|
||||
|
||||
var bytes = Google.Protobuf.MessageExtensions.ToByteArray(proto);
|
||||
Logger.Info($"RspLogin proto size: {bytes.Length} bytes (limit: 65535)");
|
||||
Logger.Info($"RspLogin proto size: {bytes.Length} bytes");
|
||||
|
||||
SetData(bytes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user