From c6d2190d2d4971f0cfa149f602bf549e16b34159 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 24 Sep 2009 07:18:38 +0000 Subject: Add "demo" to the extras field of the fallback detector for demos svn-id: r44291 --- engines/sci/detection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 819ff37974..484d1611d8 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -361,6 +361,10 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl if (!strcmp(s_fallbackDesc.desc.gameid, "qfg1") && !Common::File::exists("resource.001")) s_fallbackDesc.desc.extra = "VGA Remake"; + // Add "demo" to the description for demos + if (s_fallbackDesc.desc.flags & ADGF_DEMO) + s_fallbackDesc.desc.extra = "demo"; + SearchMan.remove("SCI_detection"); return (const ADGameDescription *)&s_fallbackDesc; -- cgit v1.2.3