2008-04-20 14:43:56 +00: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:22 +01:00
|
|
|
*
|
2008-04-20 14:43:56 +00: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:22 +01:00
|
|
|
*
|
2008-04-20 14:43:56 +00: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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-08-06 22:59:20 +05:30
|
|
|
#include "base/plugins.h"
|
2011-10-09 22:58:37 +02:00
|
|
|
#include "engines/advancedDetector.h"
|
2008-04-20 14:43:56 +00:00
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "made/detection.h"
|
2008-04-20 14:43:56 +00:00
|
|
|
|
|
|
|
static const PlainGameDescriptor madeGames[] = {
|
2008-05-02 12:08:06 +00:00
|
|
|
{"manhole", "The Manhole"},
|
2008-04-22 10:18:32 +00:00
|
|
|
{"rtz", "Return to Zork"},
|
2008-05-02 12:08:06 +00:00
|
|
|
{"lgop2", "Leather Goddesses of Phobos 2"},
|
2008-06-18 11:01:51 +00:00
|
|
|
{"rodney", "Rodney's Funscreen"},
|
2008-04-20 14:43:56 +00:00
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "made/detection_tables.h"
|
2020-08-06 22:59:20 +05:30
|
|
|
|
2020-10-02 12:25:08 +05:30
|
|
|
class MadeMetaEngineStatic : public AdvancedMetaEngineStatic {
|
2008-04-20 14:43:56 +00:00
|
|
|
public:
|
2020-10-02 12:25:08 +05:30
|
|
|
MadeMetaEngineStatic() : AdvancedMetaEngineStatic(Made::gameDescriptions, sizeof(Made::MadeGameDescription), madeGames) {
|
2011-06-10 15:53:54 +02:00
|
|
|
}
|
2008-04-20 14:43:56 +00:00
|
|
|
|
2020-01-31 13:56:51 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "made";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:30 +01:00
|
|
|
const char *getName() const override {
|
2011-05-15 15:50:09 +01:00
|
|
|
return "MADE";
|
2008-04-20 14:43:56 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:30 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2008-05-07 08:19:36 +00:00
|
|
|
return "MADE Engine (C) Activision";
|
2008-04-20 14:43:56 +00:00
|
|
|
}
|
|
|
|
|
2017-12-02 17:14:22 +01:00
|
|
|
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override;
|
2008-04-20 14:43:56 +00:00
|
|
|
};
|
|
|
|
|
2020-10-02 12:25:08 +05:30
|
|
|
ADDetectedGame MadeMetaEngineStatic::fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const {
|
2008-04-20 14:43:56 +00:00
|
|
|
// Set the default values for the fallback descriptor's ADGameDescription part.
|
|
|
|
Made::g_fallbackDesc.desc.language = Common::UNK_LANG;
|
2013-05-02 18:26:58 -04:00
|
|
|
Made::g_fallbackDesc.desc.platform = Common::kPlatformDOS;
|
2009-01-29 22:13:01 +00:00
|
|
|
Made::g_fallbackDesc.desc.flags = ADGF_NO_FLAGS;
|
2008-04-20 14:43:56 +00:00
|
|
|
|
|
|
|
// Set default values for the fallback descriptor's MadeGameDescription part.
|
|
|
|
Made::g_fallbackDesc.gameID = 0;
|
|
|
|
Made::g_fallbackDesc.features = 0;
|
2009-01-16 23:20:17 +00:00
|
|
|
Made::g_fallbackDesc.version = 3;
|
2008-04-20 14:43:56 +00:00
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
//return (const ADGameDescription *)&Made::g_fallbackDesc;
|
2017-12-02 17:14:22 +01:00
|
|
|
return ADDetectedGame();
|
2008-04-20 14:43:56 +00:00
|
|
|
}
|
|
|
|
|
2020-10-11 23:12:32 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(MADE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, MadeMetaEngineStatic);
|