From c44bc75030a1470c3eff7cdf280021a203b87c19 Mon Sep 17 00:00:00 2001 From: BearOso Date: Mon, 8 May 2023 12:38:21 -0500 Subject: [PATCH] memmap: Fix stupid change to sjis conversion. --- external/SPIRV-Cross | 2 +- memmap.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/external/SPIRV-Cross b/external/SPIRV-Cross index 4e2fdb25..197a273f 160000 --- a/external/SPIRV-Cross +++ b/external/SPIRV-Cross @@ -1 +1 @@ -Subproject commit 4e2fdb25671c742a9fbe93a6034eb1542244c7e1 +Subproject commit 197a273fd494321157f40a962c51b5fa8c9c3581 diff --git a/memmap.cpp b/memmap.cpp index 33479e65..28d80e49 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -3384,11 +3384,15 @@ static std::string sjis_to_utf8(std::string in) { unsigned char c = i; if (c > 160 && c < 192) + { out += "\357\275"; + out += c; + } else if (c >= 192) { out += "\357\276"; c -= 0x40; + out += c; } else if (c >= 32) out += c;