Imported SJIS -> Unicode converter from xsystem35

This commit is contained in:
kichikuou
2016-04-03 13:57:06 +09:00
parent 382fcdf31e
commit d2ea450fdc
6 changed files with 20 additions and 42 deletions
+10
View File
@@ -5,6 +5,16 @@
*/
#include "ags.h"
#include "s2utbl.h"
inline uint16 sjis_to_unicode(uint16 code)
{
if (code >= 0xa0 && code <= 0xdf)
return 0xff60 + code - 0xa0;
if (code < 0x100)
return code;
return s2u[(code >> 8) - 0x80][(code & 0xff) - 0x40];
}
void AGS::draw_text(char string[])
{