diff options
author | Lars Skovlund | 2012-06-02 18:50:46 +0200 |
---|---|---|
committer | Lars Skovlund | 2012-06-02 18:50:46 +0200 |
commit | c1dd3d5c2986f6c688eaf5ea80034658840b2828 (patch) | |
tree | 894d8b33d93211a89e40e5a1f6d4b36bca80847f | |
parent | d9983a6224dcc82d56a7b3d6d2aaad79def96766 (diff) | |
download | scummvm-rg350-c1dd3d5c2986f6c688eaf5ea80034658840b2828.tar.gz scummvm-rg350-c1dd3d5c2986f6c688eaf5ea80034658840b2828.tar.bz2 scummvm-rg350-c1dd3d5c2986f6c688eaf5ea80034658840b2828.zip |
SCI32: Implement GetConfig("language")
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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()); } |