From c1dd3d5c2986f6c688eaf5ea80034658840b2828 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Sat, 2 Jun 2012 18:50:46 +0200 Subject: SCI32: Implement GetConfig("language") --- engines/sci/engine/kmisc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 2911af97df..9a113bc5f9 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -381,6 +381,9 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) { s->_segMan->strcpy(data, "586"); } else if (setting == "cpuspeed") { s->_segMan->strcpy(data, "500"); + } else if (setting == "language") { + Common::String languageId = Common::String::format("%d", g_sci->getSciLanguage()); + s->_segMan->strcpy(data, languageId.c_str()); } else { error("GetConfig: Unknown configuration setting %s", setting.c_str()); } -- cgit v1.2.3