aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-08-20 19:36:54 +0200
committerJohannes Schickel2011-08-20 19:36:54 +0200
commit59200bf426cc85b9ec49865010a035ce214bb2bd (patch)
treeb8e7237896fa47827024e6f599ac37da1062912e /engines
parent5a1f75eae3a1d15bf0c610d2468a2afef30a893b (diff)
downloadscummvm-rg350-59200bf426cc85b9ec49865010a035ce214bb2bd.tar.gz
scummvm-rg350-59200bf426cc85b9ec49865010a035ce214bb2bd.tar.bz2
scummvm-rg350-59200bf426cc85b9ec49865010a035ce214bb2bd.zip
SCUMM: Fix compilation when translation support is disabled.
For this I added a convenience version of getLanguageYesNo, which works on the currently setup GUI translation language. All other code which requires this acan also use it instead of having to worry about the USE_TRANSLATION and thus having two code paths.
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/dialogs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 0b98ac22b6..74a92f2204 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -491,7 +491,7 @@ ConfirmDialog::ConfirmDialog(ScummEngine *scumm, int res)
void ConfirmDialog::handleKeyDown(Common::KeyState state) {
Common::KeyCode keyYes, keyNo;
- Common::getLanguageYesNo(Common::parseLanguageFromLocale(TransMan.getCurrentLanguage().c_str()), keyYes, keyNo);
+ Common::getLanguageYesNo(keyYes, keyNo);
if (state.keycode == Common::KEYCODE_n || state.ascii == _noKey || state.ascii == keyNo) {
setResult(0);