From df2e4e8e2c02981b339235f4a429db5bb68ea4f4 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Tue, 25 Jul 2017 13:53:44 +0200 Subject: ADL: Add hires3 support Game starts up, but isn't playable yet --- engines/adl/hires2.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'engines/adl/hires2.cpp') diff --git a/engines/adl/hires2.cpp b/engines/adl/hires2.cpp index 9f76b0f49f..4575cf6854 100644 --- a/engines/adl/hires2.cpp +++ b/engines/adl/hires2.cpp @@ -170,6 +170,20 @@ void HiRes2Engine::runIntro() { _disk->setSectorLimit(13); } +class HiRes3Engine : public HiResBaseEngine { +public: + HiRes3Engine(OSystem *syst, const AdlGameDescription *gd); +}; + +HiRes3Engine::HiRes3Engine(OSystem *syst, const AdlGameDescription *gd) : + HiResBaseEngine(syst, gd, 138, 255, 36) { + + const byte brokenRooms[] = { 18, 24, 54, 98, 102, 108 }; + + for (int i = 0; i < ARRAYSIZE(brokenRooms); ++i) + _brokenRooms.push_back(brokenRooms[i]); +} + Engine *HiRes2Engine_create(OSystem *syst, const AdlGameDescription *gd) { return new HiRes2Engine(syst, gd); } @@ -178,4 +192,8 @@ Engine *HiRes0Engine_create(OSystem *syst, const AdlGameDescription *gd) { return new HiResBaseEngine(syst, gd, 43, 142, 2); } +Engine *HiRes3Engine_create(OSystem *syst, const AdlGameDescription *gd) { + return new HiRes3Engine(syst, gd); +} + } // End of namespace Adl -- cgit v1.2.3