2007-05-30 21:56:52 +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.
|
2005-11-12 06:01:24 +00:00
|
|
|
*
|
|
|
|
* 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:17 +01:00
|
|
|
*
|
2005-11-12 06:01:24 +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:17 +01:00
|
|
|
*
|
2005-11-12 06:01:24 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2011-06-14 15:25:33 +02:00
|
|
|
#include "engines/obsolete.h"
|
2020-08-05 00:20:50 +05:30
|
|
|
|
2008-10-06 12:48:52 +00:00
|
|
|
#include "common/system.h"
|
2011-04-24 11:34:27 +03:00
|
|
|
#include "common/textconsole.h"
|
2014-01-22 00:30:28 +01:00
|
|
|
#include "common/installshield_cab.h"
|
2005-11-12 06:01:24 +00:00
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "agos/detection.h"
|
2020-08-05 00:20:50 +05:30
|
|
|
#include "agos/intern_detection.h"
|
|
|
|
#include "agos/obsolete.h" // Obsolete ID table.
|
2006-03-09 14:30:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Conversion table mapping old obsolete target names to the
|
|
|
|
* corresponding new target and platform combination.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-06-10 15:53:51 +02:00
|
|
|
static const PlainGameDescriptor agosGames[] = {
|
2009-03-08 08:45:21 +00:00
|
|
|
{"pn", "Personal Nightmare"},
|
2006-10-06 05:17:54 +00:00
|
|
|
{"elvira1", "Elvira - Mistress of the Dark"},
|
2006-10-06 09:21:34 +00:00
|
|
|
{"elvira2", "Elvira II - The Jaws of Cerberus"},
|
2006-09-29 03:44:55 +00:00
|
|
|
{"waxworks", "Waxworks"},
|
|
|
|
{"simon1", "Simon the Sorcerer 1"},
|
|
|
|
{"simon2", "Simon the Sorcerer 2"},
|
|
|
|
{"feeble", "The Feeble Files"},
|
2006-09-29 05:33:22 +00:00
|
|
|
{"dimp", "Demon in my Pocket"},
|
2006-09-28 23:22:07 +00:00
|
|
|
{"jumble", "Jumble"},
|
2006-09-29 04:48:04 +00:00
|
|
|
{"puzzle", "NoPatience"},
|
2006-09-28 23:22:07 +00:00
|
|
|
{"swampy", "Swampy Adventures"},
|
2006-11-12 03:23:29 +00:00
|
|
|
{0, 0}
|
2006-03-09 14:30:43 +00:00
|
|
|
};
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "agos/detection_tables.h"
|
2007-01-24 22:24:52 +00:00
|
|
|
|
2011-09-08 00:38:39 +02:00
|
|
|
static const char *const directoryGlobs[] = {
|
2010-06-15 11:00:07 +00:00
|
|
|
"execute", // Used by Simon1 Acorn CD
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
2009-05-16 05:34:16 +00:00
|
|
|
using namespace AGOS;
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class AgosMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2008-02-02 02:35:13 +00:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
AgosMetaEngineDetection() : AdvancedMetaEngineDetection(AGOS::gameDescriptions, sizeof(AGOS::AGOSGameDescription), agosGames) {
|
2016-03-08 18:30:58 +01:00
|
|
|
_guiOptions = GUIO1(GUIO_NOLAUNCHLOAD);
|
2011-06-11 17:52:32 +02:00
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2011-06-10 15:53:51 +02:00
|
|
|
}
|
2009-01-01 15:06:43 +00:00
|
|
|
|
2018-05-06 12:57:08 +02:00
|
|
|
PlainGameDescriptor findGame(const char *gameId) const override {
|
2016-03-08 18:30:58 +01:00
|
|
|
return Engines::findGameID(gameId, _gameIds, obsoleteGameIDsTable);
|
2011-06-14 15:25:33 +02:00
|
|
|
}
|
|
|
|
|
2020-01-31 12:49:29 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "agos";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:27 +01:00
|
|
|
const char *getName() const override {
|
2008-02-02 02:35:13 +00:00
|
|
|
return "AGOS";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:27 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2008-02-02 02:35:13 +00:00
|
|
|
return "AGOS (C) Adventure Soft";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(AGOS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, AgosMetaEngineDetection);
|