Skip to content

Commit

Permalink
ascii working, sjis not working
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiwish committed Jul 15, 2024
1 parent ca38f56 commit 5de6570
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion server/signserver/dsgn_resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,16 @@ func (s *Session) makeSignResponse(uid uint32) []byte {
msg.WriteUint32(uint32(len(parts)))
for _, part := range parts {
msg.WriteUint16(part)
msg.WriteInt16(-1)
var i int16
j := int16(-1)
for _, smcGroup := range smcData {
if rune(part) == smcGroup.charGroup[0][0] {
j = i
break
}
i += int16(len(smcGroup.charGroup) + 1)
}
msg.WriteInt16(j)
}
msg.WriteUint16(0)
msg.WriteInt16(-1)
Expand Down

0 comments on commit 5de6570

Please sign in to comment.