mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 15:20:58 -04:00
Match ut_CharStreamReader
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@ config.libs = [
|
||||
Object(Matching, "nw4r/ut/ut_list.cpp"),
|
||||
Object(Matching, "nw4r/ut/ut_LinkList.cpp"),
|
||||
Object(Matching, "nw4r/ut/ut_binaryFileFormat.cpp"),
|
||||
Object(NonMatching, "nw4r/ut/ut_CharStrmReader.cpp"),
|
||||
Object(Matching, "nw4r/ut/ut_CharStrmReader.cpp"),
|
||||
Object(NonMatching, "nw4r/ut/ut_TagProcessorBase.cpp"),
|
||||
Object(NonMatching, "nw4r/ut/ut_IOStream.cpp"),
|
||||
Object(NonMatching, "nw4r/ut/ut_FileStream.cpp"),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user