SKY: Two more adjustments to Russian BASS

This commit is contained in:
Eugene Sandulenko 2016-04-18 08:16:26 +02:00
parent c80fe53efc
commit 701120cabd

View File

@ -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 {