Match ut_CharStreamReader

This commit is contained in:
robojumper
2024-05-05 09:25:21 +02:00
parent 88df5e430b
commit 282402ff85
2 changed files with 2 additions and 8 deletions
+1 -7
View File
@@ -40,13 +40,7 @@ u16 CharStrmReader::ReadNextCharCP1252() {
u16 CharStrmReader::ReadNextCharSJIS() {
u16 code = GetChar<u8>(0);
bool isLead = false;
if ((((u8)GetChar<u8>(0) >= 0x81) && ((u8)GetChar<u8>(0) <= 0xA0)) || (u8)GetChar<u8>(0) >= 0xe0) {
isLead = true;
}
if (isLead) {
if (IsSJISLeadByte((u8)code)) {
code = GetChar<u8>(1) | (GetChar<u8>(0) << 8);
StepStrm<u8>(2);
} else {