diff options
author | WinterGrascph | 2016-05-03 17:55:04 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | cdf377f7a7a43521403c38014bb1406b1ce15721 (patch) | |
tree | 7c45683f4025da5b095e259c0398098a0853c356 /engines/dm/dm.cpp | |
parent | 055e789d0461f881b13cb4fe6e3331b1872eb633 (diff) | |
download | scummvm-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.cpp | 8 |
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; } |