Encoding: Refactor mblen() to accept first byte instead of pointer

This commit is contained in:
kichikuou
2024-12-20 13:59:30 +09:00
parent b000fecf92
commit 24c6041915
6 changed files with 27 additions and 32 deletions
+1 -2
View File
@@ -251,8 +251,7 @@ void NACT_Sys2::cmd_branch()
} else if (cmd == '\'' || cmd == '"') { // SysEng
sco.skip_syseng_string(encoding.get(), cmd);
} else if (is_message(cmd)) {
sco.ungetd();
sco.skip(encoding->mblen(sco.ptr()));
sco.skip(encoding->mblen(cmd) - 1);
} else {
sco.unknown_command(cmd);
}