diff options
author | Fabio Battaglia | 2009-04-18 08:37:22 +0000 |
---|---|---|
committer | Fabio Battaglia | 2009-04-18 08:37:22 +0000 |
commit | 0b2e06e4a4225a6ede1be4e9f6c09fe2cd4caf16 (patch) | |
tree | b75afb3e841b313515da7497ef35f7b4564caea7 /engines/sword2/sword2.cpp | |
parent | 5cd22613822797a7405ae60c35a7ccae4196b9b1 (diff) | |
download | scummvm-rg350-0b2e06e4a4225a6ede1be4e9f6c09fe2cd4caf16.tar.gz scummvm-rg350-0b2e06e4a4225a6ede1be4e9f6c09fe2cd4caf16.tar.bz2 scummvm-rg350-0b2e06e4a4225a6ede1be4e9f6c09fe2cd4caf16.zip |
sword2: add support for BS2 PSX demo
svn-id: r39977
Diffstat (limited to 'engines/sword2/sword2.cpp')
-rw-r--r-- | engines/sword2/sword2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index 78fb890deb..e9ad1dba4a 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -69,6 +69,7 @@ static const GameSettings sword2_settings[] = { {"sword2", "Broken Sword 2: The Smoking Mirror", 0, "players.clu" }, {"sword2alt", "Broken Sword 2: The Smoking Mirror (alt)", 0, "r2ctlns.ocx" }, {"sword2psx", "Broken Sword 2: The Smoking Mirror (PlayStation)", 0, "screens.clu"}, + {"sword2psxdemo", "Broken Sword 2: The Smoking Mirror (PlayStation/Demo)", Sword2::GF_DEMO, "rdemo.str"}, {"sword2demo", "Broken Sword 2: The Smoking Mirror (Demo)", Sword2::GF_DEMO, "players.clu" }, {NULL, NULL, 0, NULL} }; @@ -264,13 +265,13 @@ Sword2Engine::Sword2Engine(OSystem *syst) : Engine(syst) { Common::File::addDefaultDirectory(_gameDataDir.getChild("video")); Common::File::addDefaultDirectory(_gameDataDir.getChild("smacks")); - if (0 == scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2demo")) + if (!scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2demo") || !scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psxdemo")) _features = GF_DEMO; else _features = 0; // Check if we are running PC or PSX version. - if (0 == scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psx")) + if (!scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psx") || !scumm_stricmp(ConfMan.get("gameid").c_str(), "sword2psxdemo")) Sword2Engine::_platform = Common::kPlatformPSX; else Sword2Engine::_platform = Common::kPlatformPC; |