mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-07 14:18:04 +03:00
Use s2utbl as a fallback of TextDecoder
This commit is contained in:
@@ -133,3 +133,12 @@ BYTE *sjis_toupper2(BYTE *src) {
|
||||
sjis_toupper(dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
extern unsigned short *s2u[];
|
||||
|
||||
int sjis2unicode(int byte1, int byte2) {
|
||||
return s2u[byte1 - 0x80][byte2 - 0x40];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user