diff options
author | Eugene Sandulenko | 2008-06-02 06:51:59 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-06-02 06:51:59 +0000 |
commit | cd6d528c422de5906aac1882cc1924dda903f759 (patch) | |
tree | 0407b27bca6e406f9f61e3e5fa3f9dbf5fe7e553 /engines/drascula/detection.cpp | |
parent | aaf8b5810c4e4c689e31cef8c03dd5fc1b3ad519 (diff) | |
download | scummvm-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.cpp | 11 |
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[] = { |