From 8bd741d41b6fc796fce03e3cda1228b57ac57bce Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sun, 5 Sep 2010 20:37:38 +0000 Subject: HUGO: Add support for multiple scenery files This is used by H3Dos only. svn-id: r52571 --- engines/hugo/hugo.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'engines/hugo/hugo.cpp') diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 58f4dc444e..316c16f018 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -140,7 +140,6 @@ Common::Error HugoEngine::run() { s_Engine = this; initGraphics(320, 200, false); - _fileManager = new FileManager(*this); _screen = new Screen(*this); _mouseHandler = new MouseHandler(*this); _inventoryHandler = new InventoryHandler(*this); @@ -149,27 +148,33 @@ Common::Error HugoEngine::run() { _soundHandler = new SoundHandler(*this); switch (_gameVariant) { - case 0: + case 0: // H1 Win + _fileManager = new FileManager_v3(*this); _scheduler = new Scheduler_v2(*this); _introHandler = new intro_1w(*this); break; case 1: + _fileManager = new FileManager_v2(*this); _scheduler = new Scheduler_v2(*this); _introHandler = new intro_2w(*this); break; case 2: + _fileManager = new FileManager_v2(*this); _scheduler = new Scheduler_v2(*this); _introHandler = new intro_3w(*this); break; - case 3: + case 3: // H1 DOS + _fileManager = new FileManager_v1(*this); _scheduler = new Scheduler_v1(*this); _introHandler = new intro_1d(*this); break; case 4: + _fileManager = new FileManager_v2(*this); _scheduler = new Scheduler_v1(*this); _introHandler = new intro_2d(*this); break; case 5: + _fileManager = new FileManager_v4(*this); _scheduler = new Scheduler_v2(*this); _introHandler = new intro_3d(*this); break; -- cgit v1.2.3