aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorWinterGrascph2016-05-03 17:55:04 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitcdf377f7a7a43521403c38014bb1406b1ce15721 (patch)
tree7c45683f4025da5b095e259c0398098a0853c356 /engines/dm/dm.cpp
parent055e789d0461f881b13cb4fe6e3331b1872eb633 (diff)
downloadscummvm-rg350-cdf377f7a7a43521403c38014bb1406b1ce15721.tar.gz
scummvm-rg350-cdf377f7a7a43521403c38014bb1406b1ce15721.tar.bz2
scummvm-rg350-cdf377f7a7a43521403c38014bb1406b1ce15721.zip
DM: Add support for Dungeon.dat uncompression
Add DungeonMan class with support for loading and uncompressing Dungeon.dat file into memory
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index d6fc1f3d7d..61e68dfaa7 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -12,6 +12,7 @@
#include "dm/dm.h"
#include "dm/gfx.h"
+#include "dm/dungeonman.h"
namespace DM {
@@ -39,17 +40,23 @@ DMEngine::~DMEngine() {
delete _rnd;
delete _console;
delete _displayMan;
+ delete _dungeonMan;
// clear debug channels
DebugMan.clearAllDebugChannels();
}
+
Common::Error DMEngine::run() {
initGraphics(320, 200, false);
_console = new Console(this);
_displayMan = new DisplayMan(this);
+ _dungeonMan = new DungeonMan(this);
_displayMan->setUpScreens(320, 200);
_displayMan->loadGraphics();
+ _dungeonMan->loadDungeonFile();
+
+
byte *palette = new byte[256 * 3];
@@ -79,7 +86,6 @@ Common::Error DMEngine::run() {
_displayMan->updateScreen();
}
-
return Common::kNoError;
}