diff options
author | Filippos Karapetis | 2015-01-20 05:19:44 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-20 22:51:25 +0200 |
commit | 1d6a80734969d2475c7d97945a74225b12dae297 (patch) | |
tree | 813dc38266338514a6a7efe987d490d0d0488f6a /engines | |
parent | ad83f033151ac6cf6345e6a83a0903ad6499c0ca (diff) | |
download | scummvm-rg350-1d6a80734969d2475c7d97945a74225b12dae297.tar.gz scummvm-rg350-1d6a80734969d2475c7d97945a74225b12dae297.tar.bz2 scummvm-rg350-1d6a80734969d2475c7d97945a74225b12dae297.zip |
ZVISION: Adapt confirmation dialogs for non-English versions
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/graphics/render_manager.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp index da6655b310..a65117f2b5 100644 --- a/engines/zvision/graphics/render_manager.cpp +++ b/engines/zvision/graphics/render_manager.cpp @@ -989,14 +989,33 @@ bool RenderManager::askQuestion(const Common::String &str) { Common::Event evnt; while (_engine->getEventManager()->pollEvent(evnt)) { if (evnt.type == Common::EVENT_KEYDOWN) { + // English: yes/no + // German: ja/nein + // Spanish: si/no + // French: F4/any other key switch (evnt.kbd.keycode) { case Common::KEYCODE_y: - result = 2; + if (_engine->getLanguage() == Common::EN_ANY) + result = 2; + break; + case Common::KEYCODE_j: + if (_engine->getLanguage() == Common::DE_DEU) + result = 2; + break; + case Common::KEYCODE_s: + if (_engine->getLanguage() == Common::ES_ESP) + result = 2; + break; + case Common::KEYCODE_F4: + if (_engine->getLanguage() == Common::FR_FRA) + result = 2; break; case Common::KEYCODE_n: result = 1; break; default: + if (_engine->getLanguage() == Common::FR_FRA) + result = 1; break; } } |