[Scummvm-cvs-logs] scummvm master -> 1d6a80734969d2475c7d97945a74225b12dae297

bluegr bluegr at gmail.com
Tue Jan 20 23:20:47 CET 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1d6a807349 ZVISION: Adapt confirmation dialogs for non-English versions


Commit: 1d6a80734969d2475c7d97945a74225b12dae297
    https://github.com/scummvm/scummvm/commit/1d6a80734969d2475c7d97945a74225b12dae297
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2015-01-20T22:51:25+02:00

Commit Message:
ZVISION: Adapt confirmation dialogs for non-English versions

Changed paths:
    engines/zvision/graphics/render_manager.cpp



diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp
index da6655b..a65117f 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;
 				}
 			}






More information about the Scummvm-git-logs mailing list