diff options
author | Eugene Sandulenko | 2010-08-18 13:44:22 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-08-18 13:44:22 +0000 |
commit | 330d467b512e3e4064d7552a43766085afd4602b (patch) | |
tree | 9c878fb96a4d59582a5030cc4a5194df1ef2df92 /engines/hugo/hugo.cpp | |
parent | ff8cfd3d9bc12fe0ca3ceeab5ea3615801e41957 (diff) | |
download | scummvm-rg350-330d467b512e3e4064d7552a43766085afd4602b.tar.gz scummvm-rg350-330d467b512e3e4064d7552a43766085afd4602b.tar.bz2 scummvm-rg350-330d467b512e3e4064d7552a43766085afd4602b.zip |
HUGO: Move engine object creation to more suitable place.
svn-id: r52185
Diffstat (limited to 'engines/hugo/hugo.cpp')
-rw-r--r-- | engines/hugo/hugo.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 2221ebd77b..69cc16e0d5 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -67,15 +67,6 @@ HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(sy DebugMan.addDebugChannel(kDebugFile, "File", "File IO debug level"); DebugMan.addDebugChannel(kDebugRoute, "Route", "Route debug level"); DebugMan.addDebugChannel(kDebugInventory, "Inventory", "Inventory debug level"); - - _fileManager = new FileManager(*this); - _scheduler = new Scheduler(*this); - _screen = new Screen(*this); - _mouseHandler = new MouseHandler(*this); - _inventoryHandler = new InventoryHandler(*this); - _parser = new Parser(*this); - _route = new Route(*this); - _soundHandler = new SoundHandler(*this); } HugoEngine::~HugoEngine() { @@ -149,6 +140,15 @@ Common::Error HugoEngine::run() { s_Engine = this; initGraphics(320, 200, false); + _fileManager = new FileManager(*this); + _scheduler = new Scheduler(*this); + _screen = new Screen(*this); + _mouseHandler = new MouseHandler(*this); + _inventoryHandler = new InventoryHandler(*this); + _parser = new Parser(*this); + _route = new Route(*this); + _soundHandler = new SoundHandler(*this); + if (!loadHugoDat()) return Common::kUnknownError; |