AGOS: Switched pause dialog to getLanguageKeyYes usage

This commit is contained in:
Eugene Sandulenko 2011-08-20 12:38:07 +01:00
parent a2945ba440
commit 52147dc0c0

View File

@ -21,6 +21,7 @@
*/
#include "common/system.h"
#include "common/localization.h"
#include "graphics/palette.h"
@ -307,34 +308,9 @@ void AGOSEngine_Simon1::os1_pauseGame() {
// 135: pause game
_system->setFeatureState(OSystem::kFeatureVirtualKeyboard, true);
// If all else fails, use English as fallback.
Common::KeyCode keyYes = Common::KEYCODE_y;
Common::KeyCode keyNo = Common::KEYCODE_n;
Common::KeyCode keyYes, keyNo;
switch (_language) {
case Common::RU_RUS:
break;
case Common::PL_POL:
keyYes = Common::KEYCODE_t;
break;
case Common::HE_ISR:
keyYes = Common::KEYCODE_f;
break;
case Common::ES_ESP:
keyYes = Common::KEYCODE_s;
break;
case Common::IT_ITA:
keyYes = Common::KEYCODE_s;
break;
case Common::FR_FRA:
keyYes = Common::KEYCODE_o;
break;
case Common::DE_DEU:
keyYes = Common::KEYCODE_j;
break;
default:
break;
}
Common::getLanguageYesNo((Common::Language)_language, keyYes, keyNo);
while (!shouldQuit()) {
delay(1);