mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-12 15:04:38 +01:00
decode SMC table
This commit is contained in:
@@ -34,7 +34,11 @@ func ToNGWord(x string) []uint16 {
|
|||||||
for _, r := range []rune(x) {
|
for _, r := range []rune(x) {
|
||||||
if r > 0xFF {
|
if r > 0xFF {
|
||||||
t := UTF8ToSJIS(string(r))
|
t := UTF8ToSJIS(string(r))
|
||||||
w = append(w, uint16(t[1])<<8|uint16(t[0]))
|
if len(t) > 1 {
|
||||||
|
w = append(w, uint16(t[1])<<8|uint16(t[0]))
|
||||||
|
} else {
|
||||||
|
w = append(w, uint16(t[0]))
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
w = append(w, uint16(r))
|
w = append(w, uint16(r))
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user