diff options
author | Johannes Schickel | 2007-01-25 11:26:13 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-01-25 11:26:13 +0000 |
commit | 67916d529560677652af2de81bef21ea5fd984ef (patch) | |
tree | c432de08eeeef94a48749a706afc7d4a64f1de64 | |
parent | d8a33123a805dd7479771289a0530d89e2e3a9e2 (diff) | |
download | scummvm-rg350-67916d529560677652af2de81bef21ea5fd984ef.tar.gz scummvm-rg350-67916d529560677652af2de81bef21ea5fd984ef.tar.bz2 scummvm-rg350-67916d529560677652af2de81bef21ea5fd984ef.zip |
Adding language/platform overwriting removed in r25170 (by accident?)
svn-id: r25184
-rw-r--r-- | engines/kyra/plugin.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/kyra/plugin.cpp b/engines/kyra/plugin.cpp index f23cc9e4e6..8aa1abfd62 100644 --- a/engines/kyra/plugin.cpp +++ b/engines/kyra/plugin.cpp @@ -119,6 +119,20 @@ PluginError Engine_KYRA_create(OSystem *syst, Engine **engine) { } GameFlags flags = adGameDescs[id].flags; + + Platform platform = parsePlatform(ConfMan.get("platform")); + if (platform != kPlatformUnknown) { + flags.platform = platform; + } + + if (flags.lang == UNK_LANG) { + Language lang = parseLanguage(ConfMan.get("language")); + if (lang != UNK_LANG) { + flags.lang = lang; + } else { + flags.lang = EN_ANY; + } + } if (!scumm_stricmp("kyra1", gameid)) { *engine = new KyraEngine_v1(syst, flags); |