Skip to content

Commit

Permalink
SCI: Support for Cyrillic input
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 21, 2019
1 parent 974c8b6 commit c386004
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions engines/sci/event.cpp
Expand Up @@ -323,6 +323,16 @@ SciEvent EventManager::getScummVMEvent() {
break;
}
}

if (g_sci->getLanguage() == Common::RU_RUS) {
// Convert UTF16 to CP866
if (input.character >= 0x400 && input.character <= 0x4ff) {
if (input.character >= 0x440)
input.character = input.character - 0x410 + 0xb0;
else
input.character = input.character - 0x410 + 0x80;
}
}
}

// TODO: Leaky abstractions from SDL should not be handled in game engines!
Expand Down

0 comments on commit c386004

Please sign in to comment.