From 85da9de3bf0297d95ed0e335355dcfce6412931c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Sat, 25 Dec 2010 18:45:29 +0000 Subject: MOHAWK: detect/load the Rugrats Adventure Game svn-id: r55035 --- engines/mohawk/detection.cpp | 3 +++ engines/mohawk/detection_tables.h | 30 ++++++++++++++++++++++++++++++ engines/mohawk/livingbooks.cpp | 6 ++++++ 3 files changed, 39 insertions(+) diff --git a/engines/mohawk/detection.cpp b/engines/mohawk/detection.cpp index c3a276d241..abe8958fd1 100644 --- a/engines/mohawk/detection.cpp +++ b/engines/mohawk/detection.cpp @@ -120,6 +120,7 @@ static const PlainGameDescriptor mohawkGames[] = { {"arthurrace", "Arthur's Reading Race"}, {"arthurbday", "Arthur's Birthday"}, {"lilmonster", "Little Monster at School"}, + {"rugrats", "Rugrats Adventure Game"}, #endif {0, 0} }; @@ -130,6 +131,8 @@ static const char *directoryGlobs[] = { "all", "assets1", "data", + "program", + "Rugrats Adventure Game", 0 }; diff --git a/engines/mohawk/detection_tables.h b/engines/mohawk/detection_tables.h index 6b1427ca27..ddac4bfaf7 100644 --- a/engines/mohawk/detection_tables.h +++ b/engines/mohawk/detection_tables.h @@ -1008,6 +1008,36 @@ static const MohawkGameDescription gameDescriptions[] = { 0, "Little Monster at School" }, + + { + { + "rugrats", + "", + AD_ENTRY1("outline", "525be248363fe27d50d750632c1e759e"), + Common::EN_ANY, + Common::kPlatformWindows, + ADGF_NO_FLAGS, + Common::GUIO_NONE + }, + GType_LIVINGBOOKSV3, + 0, + 0, + }, + + { + { + "rugrats", + "", + AD_ENTRY1("BookOutline", "54a324ee6f8260258bff7043a05b0004"), + Common::EN_ANY, + Common::kPlatformMacintosh, + ADGF_NO_FLAGS, + Common::GUIO_NONE + }, + GType_LIVINGBOOKSV3, + 0, + 0, + }, #endif { AD_TABLE_END_MARKER, 0, 0, 0 } diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index ba14c71c9e..a54aa11532 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -31,6 +31,8 @@ #include "common/events.h" #include "common/EventRecorder.h" +#include "common/fs.h" +#include "common/archive.h" #include "engines/util.h" @@ -80,6 +82,10 @@ MohawkEngine_LivingBooks::MohawkEngine_LivingBooks(OSystem *syst, const MohawkGa _rnd = new Common::RandomSource(); g_eventRec.registerRandomSource(*_rnd, "livingbooks"); + + const Common::FSNode gameDataDir(ConfMan.get("path")); + SearchMan.addSubDirectoryMatching(gameDataDir, "program"); + SearchMan.addSubDirectoryMatching(gameDataDir, "Rugrats Adventure Game"); } MohawkEngine_LivingBooks::~MohawkEngine_LivingBooks() { -- cgit v1.2.3