mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-29 18:38:13 +03:00
Encoding: Refactor mblen() to accept first byte instead of pointer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user