diff options
Diffstat (limited to 'engines/xeen/files.cpp')
-rw-r--r-- | engines/xeen/files.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/engines/xeen/files.cpp b/engines/xeen/files.cpp index 86fb3fc3e3..6380199f51 100644 --- a/engines/xeen/files.cpp +++ b/engines/xeen/files.cpp @@ -221,16 +221,22 @@ FileManager::FileManager(XeenEngine *vm) { Common::File f; _isDarkCc = vm->getGameID() == GType_DarkSide; - File::_xeenCc = (vm->getGameID() == GType_DarkSide) ? nullptr : - new CCArchive("xeen.cc", "xeen", true); - File::_darkCc = (vm->getGameID() == GType_Clouds) ? nullptr : - new CCArchive("dark.cc", "dark", true); + if (vm->getGameID() == GType_Swords) { + File::_xeenCc = nullptr; + File::_darkCc = new CCArchive("swrd.cc", "xeen", true); + } else { + File::_xeenCc = (vm->getGameID() == GType_DarkSide) ? nullptr : + new CCArchive("xeen.cc", "xeen", true); + File::_darkCc = (vm->getGameID() == GType_Clouds) ? nullptr : + new CCArchive("dark.cc", "dark", true); + } + if (Common::File::exists("intro.cc")) { CCArchive *introCc = new CCArchive("intro.cc", "intro", true); SearchMan.add("intro", introCc); } - File::_currentArchive = vm->getGameID() == GType_DarkSide ? + File::_currentArchive = vm->getGameID() == GType_DarkSide || vm->getGameID() == GType_Swords ? File::_darkCc : File::_xeenCc; assert(File::_currentArchive); } |