aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/sherlock.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-15 18:42:24 -0400
committerPaul Gilbert2015-03-15 18:42:24 -0400
commit1452c18ffb21da0d97725c7c982b25992bd75fe8 (patch)
treeb4fdedcb4601acd01b588523295495e7aa2b2820 /engines/sherlock/sherlock.cpp
parenta6db2fb281fb5842be2d8fc0621922e70ad9668c (diff)
downloadscummvm-rg350-1452c18ffb21da0d97725c7c982b25992bd75fe8.tar.gz
scummvm-rg350-1452c18ffb21da0d97725c7c982b25992bd75fe8.tar.bz2
scummvm-rg350-1452c18ffb21da0d97725c7c982b25992bd75fe8.zip
SHERLOCK: Added events manager and debugger classes
Diffstat (limited to 'engines/sherlock/sherlock.cpp')
-rw-r--r--engines/sherlock/sherlock.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sherlock/sherlock.cpp b/engines/sherlock/sherlock.cpp
index 13731e2fd8..cfbbacccf7 100644
--- a/engines/sherlock/sherlock.cpp
+++ b/engines/sherlock/sherlock.cpp
@@ -30,6 +30,7 @@ namespace Sherlock {
SherlockEngine::SherlockEngine(OSystem *syst, const SherlockGameDescription *gameDesc) :
Engine(syst), _gameDescription(gameDesc) {
+ _debugger = nullptr;
_journal = nullptr;
_res = nullptr;
_rooms = nullptr;
@@ -39,6 +40,7 @@ SherlockEngine::SherlockEngine(OSystem *syst, const SherlockGameDescription *gam
SherlockEngine::~SherlockEngine() {
+ delete _debugger;
delete _journal;
delete _res;
delete _rooms;
@@ -64,6 +66,7 @@ void SherlockEngine::initialize() {
_midi->setNativeMT32(native_mt32);
*/
+ _debugger = new Debugger(this);
_journal = new Journal();
_res = new Resources();
_rooms = new Rooms();
@@ -74,7 +77,9 @@ void SherlockEngine::initialize() {
Common::Error SherlockEngine::run() {
initialize();
- // TODO: The rest of the game
+ showOpening();
+
+ // TODO: Rest of game
return Common::kNoError;
}