aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-21 01:58:53 +0000
committerMatthew Hoops2011-01-21 01:58:53 +0000
commit7ed456f268d9f6db71b07fd3e7e8859556295e6c (patch)
tree3b7f1e9a5ff4fd7657e29aa928207eae92393f67 /engines/mohawk/riven.cpp
parent476eeb69e64046f3ba4bbe3027807fb23bedf4c9 (diff)
downloadscummvm-rg350-7ed456f268d9f6db71b07fd3e7e8859556295e6c.tar.gz
scummvm-rg350-7ed456f268d9f6db71b07fd3e7e8859556295e6c.tar.bz2
scummvm-rg350-7ed456f268d9f6db71b07fd3e7e8859556295e6c.zip
MOHAWK: Add support for installer files from Riven and other Broderbund games
svn-id: r55368
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r--engines/mohawk/riven.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 5ca49de944..00d0e5255f 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -31,6 +31,7 @@
#include "mohawk/cursors.h"
#include "mohawk/graphics.h"
+#include "mohawk/installer_archive.h"
#include "mohawk/resource.h"
#include "mohawk/riven.h"
#include "mohawk/riven_external.h"
@@ -108,6 +109,11 @@ GUI::Debugger *MohawkEngine_Riven::getDebugger() {
Common::Error MohawkEngine_Riven::run() {
MohawkEngine::run();
+ // Let's try to open the installer file (it holds extras.mhk)
+ // Though, we set a low priority to prefer the extracted version
+ if (_installerArchive.open("arcriven.z"))
+ SearchMan.add("arcriven.z", &_installerArchive, 0, false);
+
_gfx = new RivenGraphics(this);
_console = new RivenConsole(this);
_saveLoad = new RivenSaveLoad(this, _saveFileMan);