aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/detection.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2008-06-02 06:51:59 +0000
committerEugene Sandulenko2008-06-02 06:51:59 +0000
commitcd6d528c422de5906aac1882cc1924dda903f759 (patch)
tree0407b27bca6e406f9f61e3e5fa3f9dbf5fe7e553 /engines/drascula/detection.cpp
parentaaf8b5810c4e4c689e31cef8c03dd5fc1b3ad519 (diff)
downloadscummvm-rg350-cd6d528c422de5906aac1882cc1924dda903f759.tar.gz
scummvm-rg350-cd6d528c422de5906aac1882cc1924dda903f759.tar.bz2
scummvm-rg350-cd6d528c422de5906aac1882cc1924dda903f759.zip
Better implementation of packet games loading
svn-id: r32490
Diffstat (limited to 'engines/drascula/detection.cpp')
-rw-r--r--engines/drascula/detection.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp
index 358a2bc1c3..a79a1f5674 100644
--- a/engines/drascula/detection.cpp
+++ b/engines/drascula/detection.cpp
@@ -47,6 +47,17 @@ Common::Language DrasculaEngine::getLanguage() const {
return _gameDescription->desc.language;
}
+void DrasculaEngine::loadArchives() {
+ const Common::ADGameFileDescription *ag;
+
+ if (getFeatures() & GF_PACKED) {
+ for (ag = _gameDescription->desc.filesDescriptions; ag->fileName; ag++)
+ _arj.registerArchive(ag->fileName);
+ }
+
+ _arj.enableFallback(true);
+}
+
}
static const PlainGameDescriptor drasculaGames[] = {