From 59200bf426cc85b9ec49865010a035ce214bb2bd Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 20 Aug 2011 19:36:54 +0200 Subject: 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. --- engines/scumm/dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm/dialogs.cpp') 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); -- cgit v1.2.3