mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-27 01:53:19 +01:00
sjis support for pugi names
This commit is contained in:
@@ -951,23 +951,23 @@ func handleMsgMhfInfoGuild(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
if guild.PugiName1 == "" {
|
if guild.PugiName1 == "" {
|
||||||
bf.WriteUint16(0x0100)
|
bf.WriteUint16(0x0100)
|
||||||
} else {
|
} else {
|
||||||
bf.WriteUint8(uint8(len(guild.PugiName1)+1))
|
|
||||||
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName1)
|
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName1)
|
||||||
bf.WriteNullTerminatedBytes(pugiName)
|
bf.WriteUint8(uint8(len(pugiName)))
|
||||||
|
bf.WriteBytes(pugiName)
|
||||||
}
|
}
|
||||||
if guild.PugiName2 == "" {
|
if guild.PugiName2 == "" {
|
||||||
bf.WriteUint16(0x0100)
|
bf.WriteUint16(0x0100)
|
||||||
} else {
|
} else {
|
||||||
bf.WriteUint8(uint8(len(guild.PugiName2)+1))
|
|
||||||
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName2)
|
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName2)
|
||||||
bf.WriteNullTerminatedBytes(pugiName)
|
bf.WriteUint8(uint8(len(pugiName)))
|
||||||
|
bf.WriteBytes(pugiName)
|
||||||
}
|
}
|
||||||
if guild.PugiName3 == "" {
|
if guild.PugiName3 == "" {
|
||||||
bf.WriteUint16(0x0100)
|
bf.WriteUint16(0x0100)
|
||||||
} else {
|
} else {
|
||||||
bf.WriteUint8(uint8(len(guild.PugiName3)+1))
|
|
||||||
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName3)
|
pugiName := s.clientContext.StrConv.MustEncode(guild.PugiName3)
|
||||||
bf.WriteNullTerminatedBytes(pugiName)
|
bf.WriteUint8(uint8(len(pugiName)))
|
||||||
|
bf.WriteBytes(pugiName)
|
||||||
}
|
}
|
||||||
|
|
||||||
// probably guild pugi properties, should be status, stamina and luck outfits
|
// probably guild pugi properties, should be status, stamina and luck outfits
|
||||||
|
|||||||
Reference in New Issue
Block a user