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 632aa08 commit ca38f56
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 @@ -287,7 +287,16 @@ func (s *Session) makeSignResponse(uid uint32) []byte {
nam.WriteUint32(uint32(len(parts)))
for _, part := range parts {
nam.WriteUint16(part)
nam.WriteInt16(-1) // TODO: figure out how this value relates to corresponding SMC part
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)
}
nam.WriteInt16(j)
}
nam.WriteUint16(0)
nam.WriteInt16(-1)
Expand Down

0 comments on commit ca38f56

Please sign in to comment.