aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/plugin.cpp')
-rw-r--r--engines/kyra/plugin.cpp14
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);