aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/detection.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-05-16 05:34:16 +0000
committerTravis Howell2009-05-16 05:34:16 +0000
commitbce47e7eb68d62476fd2fcd6cc4ec1bf33618d51 (patch)
tree2acd4be22f7831560177835c0ca2397b6de9d5d7 /engines/agos/detection.cpp
parente994b94c814ece7285228598c408b9939e2d3398 (diff)
downloadscummvm-rg350-bce47e7eb68d62476fd2fcd6cc4ec1bf33618d51.tar.gz
scummvm-rg350-bce47e7eb68d62476fd2fcd6cc4ec1bf33618d51.tar.bz2
scummvm-rg350-bce47e7eb68d62476fd2fcd6cc4ec1bf33618d51.zip
Add initial support for DOS non-interactive demos of The Feeble Files.
svn-id: r40619
Diffstat (limited to 'engines/agos/detection.cpp')
-rw-r--r--engines/agos/detection.cpp8
1 files changed, 7 insertions, 1 deletions
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);