aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-07 08:59:43 +0000
committerFilippos Karapetis2010-08-07 08:59:43 +0000
commit421ac2562879d6bae8c01536273cca3c89dbd603 (patch)
tree5045f81a9817a96619557ba7049b5665e8e6bd3a /engines/sci
parent7b7364a80f8db29b8b36f419cf47b0097358af6d (diff)
downloadscummvm-rg350-421ac2562879d6bae8c01536273cca3c89dbd603.tar.gz
scummvm-rg350-421ac2562879d6bae8c01536273cca3c89dbd603.tar.bz2
scummvm-rg350-421ac2562879d6bae8c01536273cca3c89dbd603.zip
SCI: Added support for the inbuilt leftover parser in XMAS1990
svn-id: r51829
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index d0c578bd45..7a9a786121 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -211,8 +211,11 @@ Common::Error SciEngine::run() {
_console = new Console(this);
_kernel = new Kernel(_resMan, segMan);
_features = new GameFeatures(segMan, _kernel);
- // Only SCI0 and SCI01 games used a parser
+ // Only SCI0, SCI01 and SCI1 EGA games used a parser
_vocabulary = (getSciVersion() <= SCI_VERSION_1_EGA) ? new Vocabulary(_resMan, false) : NULL;
+ // Also, XMAS1990 apparently had a parser too. Refer to http://forums.scummvm.org/viewtopic.php?t=9135
+ if (getGameId() == GID_CHRISTMAS1990)
+ _vocabulary = new Vocabulary(_resMan, false);
_audio = new AudioPlayer(_resMan);
_gamestate = new EngineState(segMan);
_eventMan = new EventManager(_resMan->detectFontExtended());