2011-07-14 20:08:06 +02:00
|
|
|
/* 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.
|
2014-02-18 02:34:18 +01:00
|
|
|
*
|
2011-07-14 20:08:06 +02:00
|
|
|
* 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.
|
2014-02-18 02:34:18 +01:00
|
|
|
*
|
2011-07-14 20:08:06 +02:00
|
|
|
* 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 "base/plugins.h"
|
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "composer/detection.h"
|
2011-07-14 20:08:06 +02:00
|
|
|
|
|
|
|
static const PlainGameDescriptor composerGames[] = {
|
2012-02-15 14:17:09 +00:00
|
|
|
{"babayaga", "Magic Tales: Baba Yaga and the Magic Geese"},
|
2011-07-14 20:08:06 +02:00
|
|
|
{"darby", "Darby the Dragon"},
|
2011-07-15 00:02:28 +02:00
|
|
|
{"gregory", "Gregory and the Hot Air Balloon"},
|
2012-02-15 14:17:09 +00:00
|
|
|
{"imoking", "Magic Tales: Imo and the King"},
|
2011-07-20 11:35:01 +02:00
|
|
|
{"liam", "Magic Tales: Liam Finds a Story"},
|
2012-02-15 14:17:09 +00:00
|
|
|
{"littlesamurai", "Magic Tales: The Little Samurai"},
|
2019-11-25 22:20:30 +02:00
|
|
|
{"magictales", "Magic Tales"},
|
2017-06-17 22:52:42 +01:00
|
|
|
{"princess", "Magic Tales: The Princess and the Crab"},
|
|
|
|
{"sleepingcub", "Magic Tales: Sleeping Cub's Test of Courage"},
|
2021-11-13 23:40:20 +02:00
|
|
|
{nullptr, nullptr}
|
2011-07-14 20:08:06 +02:00
|
|
|
};
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "composer/detection_tables.h"
|
2011-07-14 20:08:06 +02:00
|
|
|
|
|
|
|
using namespace Composer;
|
|
|
|
|
2011-08-23 23:11:41 +02:00
|
|
|
// we match from data too, to stop detection from a non-top-level directory
|
2012-11-23 20:44:17 +00:00
|
|
|
static const char *directoryGlobs[] = {
|
2011-08-23 23:11:41 +02:00
|
|
|
"data",
|
2012-02-15 16:29:03 +00:00
|
|
|
"liam",
|
2011-08-23 23:11:41 +02:00
|
|
|
"programs",
|
2011-08-25 16:44:43 +01:00
|
|
|
"princess",
|
|
|
|
"sleepcub",
|
2021-11-13 23:40:20 +02:00
|
|
|
nullptr
|
2011-08-23 23:11:41 +02:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class ComposerMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2011-07-14 20:08:06 +02:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
ComposerMetaEngineDetection() : AdvancedMetaEngineDetection(Composer::gameDescriptions, sizeof(Composer::ComposerGameDescription), composerGames) {
|
2011-08-23 23:11:41 +02:00
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2011-07-20 11:35:01 +02:00
|
|
|
}
|
2011-07-14 20:08:06 +02:00
|
|
|
|
2020-02-05 14:59:35 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "composer";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:27 +01:00
|
|
|
const char *getName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Magic Composer";
|
2011-07-14 20:08:06 +02:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:27 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2011-07-20 17:31:42 +02:00
|
|
|
return "Copyright (C) 1995-1999 Animation Magic";
|
2011-07-14 20:08:06 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(COMPOSER_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, ComposerMetaEngineDetection);
|