mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-07 14:27:56 +03:00
Refectoring: Add is_[12]byte_message() helper functions
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ void FILEIO::Fgets(char *dest, int length)
|
||||
if(p < length + 1) {
|
||||
dest[p++] = c;
|
||||
}
|
||||
if((0x81 <= c && c <= 0x9f) || 0xe0 <= c) {
|
||||
if(is_2byte_message(c)) {
|
||||
if(p < length + 1) {
|
||||
dest[p++] = Fgetc();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user