From bce47e7eb68d62476fd2fcd6cc4ec1bf33618d51 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 16 May 2009 05:34:16 +0000 Subject: Add initial support for DOS non-interactive demos of The Feeble Files. svn-id: r40619 --- engines/agos/detection.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/agos/detection.cpp') diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp index 7ecd6d3374..23251fc9e3 100644 --- a/engines/agos/detection.cpp +++ b/engines/agos/detection.cpp @@ -30,6 +30,7 @@ #include "common/savefile.h" #include "common/system.h" +#include "agos/intern.h" #include "agos/agos.h" namespace AGOS { @@ -100,6 +101,8 @@ static const ADParams detectionParams = { 0 }; +using namespace AGOS; + class AgosMetaEngine : public AdvancedMetaEngine { public: AgosMetaEngine() : AdvancedMetaEngine(detectionParams) {} @@ -154,7 +157,10 @@ bool AgosMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame *engine = new AGOS::AGOSEngine_Simon2(syst); break; case AGOS::GType_FF: - *engine = new AGOS::AGOSEngine_Feeble(syst); + if (gd->features & GF_DEMO) + *engine = new AGOS::AGOSEngine_FeebleDemo(syst); + else + *engine = new AGOS::AGOSEngine_Feeble(syst); break; case AGOS::GType_PP: *engine = new AGOS::AGOSEngine_PuzzlePack(syst); -- cgit v1.2.3