diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/control.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index 07be1c672f..9f78234aba 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -324,7 +324,11 @@ void Control::initPanel() { } void Control::buttonControl(ConResource *pButton) { - char autoSave[] = "Restore Autosave"; + char autoSave[50] = "Restore Autosave"; + + if (Common::parseLanguage(ConfMan.get("language")) == Common::RU_RUS) + strncpy(autoSave, "Zarpyzit/ abtocoxpahehie", 50); + if (pButton == NULL) { free(_textSprite); _textSprite = NULL; @@ -525,8 +529,13 @@ void Control::doControlPanel() { } uint16 Control::handleClick(ConResource *pButton) { - char quitDos[] = "Quit to DOS?"; - char restart[] = "Restart?"; + char quitDos[50] = "Quit to DOS?"; + char restart[50] = "Restart?"; + + if (Common::parseLanguage(ConfMan.get("language")) == Common::RU_RUS) { + strncpy(quitDos, "B[uti b DOC?", 50); + strncpy(restart, "Hobaq irpa?", 50); + } switch (pButton->_onClick) { case DO_NOTHING: @@ -1562,7 +1571,7 @@ void Control::showGameQuitMsg() { screenData = _skyScreen->giveCurrent(); - if (Common::parseLanguage(ConfMan.get("language")) == Common::RU_RUS) { + if (Common::parseLanguage(ConfMan.get("language")) == Common::RU_RUS) { _skyText->displayText(_quitTexts[8 * 2 + 0], textBuf1, true, 320, 255); _skyText->displayText(_quitTexts[8 * 2 + 1], textBuf2, true, 320, 255); } else { |