memmap: Fix stupid change to sjis conversion.

This commit is contained in:
BearOso 2023-05-08 12:38:21 -05:00
parent c7e6e9c211
commit c44bc75030
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 4e2fdb25671c742a9fbe93a6034eb1542244c7e1 Subproject commit 197a273fd494321157f40a962c51b5fa8c9c3581

View File

@ -3384,11 +3384,15 @@ static std::string sjis_to_utf8(std::string in)
{ {
unsigned char c = i; unsigned char c = i;
if (c > 160 && c < 192) if (c > 160 && c < 192)
{
out += "\357\275"; out += "\357\275";
out += c;
}
else if (c >= 192) else if (c >= 192)
{ {
out += "\357\276"; out += "\357\276";
c -= 0x40; c -= 0x40;
out += c;
} }
else if (c >= 32) else if (c >= 32)
out += c; out += c;