diff options
author | Walter van Niftrik | 2016-11-13 12:02:18 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-11-13 12:02:52 +0100 |
commit | a22e3bceac828177e720abc72773424e8a29bc72 (patch) | |
tree | 734fd8c2fdd6e30e7ab7e63779b49df7d502ec5d | |
parent | 931e3f312a626cc916f1717a59c05e9d1ac5b972 (diff) | |
download | scummvm-rg350-a22e3bceac828177e720abc72773424e8a29bc72.tar.gz scummvm-rg350-a22e3bceac828177e720abc72773424e8a29bc72.tar.bz2 scummvm-rg350-a22e3bceac828177e720abc72773424e8a29bc72.zip |
ADL: Add skeleton for hires5
-rw-r--r-- | engines/adl/detection.cpp | 30 | ||||
-rw-r--r-- | engines/adl/detection.h | 1 | ||||
-rw-r--r-- | engines/adl/hires5.cpp | 58 | ||||
-rw-r--r-- | engines/adl/module.mk | 1 |
4 files changed, 90 insertions, 0 deletions
diff --git a/engines/adl/detection.cpp b/engines/adl/detection.cpp index 1cfeb9a859..6c1085a127 100644 --- a/engines/adl/detection.cpp +++ b/engines/adl/detection.cpp @@ -77,6 +77,7 @@ static const PlainGameDescriptor adlGames[] = { { "hires1", "Hi-Res Adventure #1: Mystery House" }, { "hires2", "Hi-Res Adventure #2: Wizard and the Princess" }, { "hires4", "Hi-Res Adventure #4: Ulysses and the Golden Fleece" }, + { "hires5", "Hi-Res Adventure #5: Time Zone" }, { "hires6", "Hi-Res Adventure #6: The Dark Crystal" }, { 0, 0 } }; @@ -157,6 +158,31 @@ static const AdlGameDescription gameDescriptions[] = { }, GAME_TYPE_HIRES4 }, + { // Hi-Res Adventure #5: Time Zone - Apple II - Version 1.1 - Roberta Williams Anthology + { + "hires5", 0, + { + { "TZONE1A.NIB", 0, "475dedb7396fdcea81c1a2a4046caebe", 232960 }, + { "TZONE1B.NIB", 0, "f8aaea094ebbe41cf4354d9fe2c30d9a", 232960 }, + { "TZONE2C.NIB", 0, "b351a367dc48e776bf08e42a3f50ae74", 232960 }, + { "TZONE2D.NIB", 0, "9583b287a5c95960f5335878102bb8b1", 232960 }, + { "TZONE3E.NIB", 0, "502e42a0cb69ffe4a48cd51c1ff210cf", 232960 }, + { "TZONE3F.NIB", 0, "3d6e0aae15f590b72b6759535b6b7d3c", 232960 }, + { "TZONE4G.NIB", 0, "ede4113a9c9e17745faf71d099808a18", 232960 }, + { "TZONE4H.NIB", 0, "f95dae4aae1155a27f7120230464d4e1", 232960 }, + { "TZONE5I.NIB", 0, "92b3b376877f81a7b7ae426bf1e65456", 232960 }, + { "TZONE5J.NIB", 0, "c9ef796fa596548dbf8f085901f0bac3", 232960 }, + { "TZONE6K.NIB", 0, "2e5323be637002efce1d4c813ae20a3f", 232960 }, + { "TZONE6L.NIB", 0, "7c9268f0ea2d02120c77a46337b3d975", 232960 }, + AD_LISTEND + }, + Common::EN_ANY, + Common::kPlatformApple2, + ADGF_UNSTABLE, + GUIO2(GAMEOPTION_COLOR_DEFAULT_ON, GAMEOPTION_SCANLINES) + }, + GAME_TYPE_HIRES5 + }, { // Hi-Res Adventure #6: The Dark Crystal - Apple II - Roberta Williams Anthology { "hires6", 0, @@ -317,6 +343,7 @@ Engine *HiRes1Engine_create(OSystem *syst, const AdlGameDescription *gd); Engine *HiRes2Engine_create(OSystem *syst, const AdlGameDescription *gd); Engine *HiRes0Engine_create(OSystem *syst, const AdlGameDescription *gd); Engine *HiRes4Engine_create(OSystem *syst, const AdlGameDescription *gd); +Engine *HiRes5Engine_create(OSystem *syst, const AdlGameDescription *gd); Engine *HiRes6Engine_create(OSystem *syst, const AdlGameDescription *gd); bool AdlMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const { @@ -338,6 +365,9 @@ bool AdlMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameD case GAME_TYPE_HIRES4: *engine = HiRes4Engine_create(syst, adlGd); break; + case GAME_TYPE_HIRES5: + *engine = HiRes5Engine_create(syst, adlGd); + break; case GAME_TYPE_HIRES6: *engine = HiRes6Engine_create(syst, adlGd); break; diff --git a/engines/adl/detection.h b/engines/adl/detection.h index b4dc3c430f..e3837060e9 100644 --- a/engines/adl/detection.h +++ b/engines/adl/detection.h @@ -36,6 +36,7 @@ enum GameType { GAME_TYPE_HIRES1, GAME_TYPE_HIRES2, GAME_TYPE_HIRES4, + GAME_TYPE_HIRES5, GAME_TYPE_HIRES6 }; diff --git a/engines/adl/hires5.cpp b/engines/adl/hires5.cpp new file mode 100644 index 0000000000..e7ee224754 --- /dev/null +++ b/engines/adl/hires5.cpp @@ -0,0 +1,58 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "common/system.h" +#include "common/debug.h" +#include "common/error.h" +#include "common/file.h" +#include "common/stream.h" + +#include "adl/adl_v3.h" +#include "adl/detection.h" +#include "adl/display.h" +#include "adl/graphics.h" +#include "adl/disk.h" + +namespace Adl { + +class HiRes5Engine : public AdlEngine_v3 { +public: + HiRes5Engine(OSystem *syst, const AdlGameDescription *gd) : AdlEngine_v3(syst, gd) { } + +private: + // AdlEngine + void init(); + void initGameState(); +}; + +void HiRes5Engine::init() { + _graphics = new Graphics_v2(*_display); +} + +void HiRes5Engine::initGameState() { +} + +Engine *HiRes5Engine_create(OSystem *syst, const AdlGameDescription *gd) { + return new HiRes5Engine(syst, gd); +} + +} // End of namespace Adl diff --git a/engines/adl/module.mk b/engines/adl/module.mk index d1de2a6c02..0654caa142 100644 --- a/engines/adl/module.mk +++ b/engines/adl/module.mk @@ -16,6 +16,7 @@ MODULE_OBJS := \ hires1.o \ hires2.o \ hires4.o \ + hires5.o \ hires6.o \ speaker.o |