scummvm/engines/dreamweb/detection.cpp

87 lines
2.3 KiB
C++
Raw Normal View History

2011-06-05 13:38:05 +04: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.
*
2011-06-05 13:38:05 +04: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.
*
2011-06-05 13:38:05 +04: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"
2011-06-16 01:21:24 +04:00
#include "common/algorithm.h"
2011-06-05 13:38:05 +04:00
#include "common/system.h"
#include "common/translation.h"
2011-06-05 13:38:05 +04:00
#include "engines/advancedDetector.h"
#include "dreamweb/detection.h"
2011-06-05 13:38:05 +04:00
static const PlainGameDescriptor dreamWebGames[] = {
{ "dreamweb", "DreamWeb" },
{ 0, 0 }
};
#include "dreamweb/detection_tables.h"
2011-06-05 13:38:05 +04:00
static const ADExtraGuiOptionsMap gameGuiOptions[] = {
{
GAMEOPTION_ORIGINAL_SAVELOAD,
{
_s("Use original save/load screens"),
_s("Use the original save/load screens instead of the ScummVM ones"),
"originalsaveload",
false
}
},
{
GAMEOPTION_BRIGHTPALETTE,
{
_s("Use bright palette mode"),
_s("Display graphics using the game's bright palette"),
"bright_palette",
true
}
},
AD_EXTRA_GUI_OPTIONS_TERMINATOR
};
class DreamWebMetaEngineDetection : public AdvancedMetaEngineDetection {
2011-06-05 13:38:05 +04:00
public:
DreamWebMetaEngineDetection():
AdvancedMetaEngineDetection(DreamWeb::gameDescriptions,
sizeof(DreamWeb::DreamWebGameDescription), dreamWebGames,
gameGuiOptions) {
_guiOptions = GUIO1(GUIO_NOMIDI);
2011-06-13 11:59:21 +04:00
}
2011-06-05 13:38:05 +04:00
2020-02-05 15:15:32 +01:00
const char *getEngineId() const override {
return "dreamweb";
}
2020-02-09 12:05:28 +01:00
const char *getName() const override {
return "DreamWeb";
2011-06-05 13:38:05 +04:00
}
2020-02-09 12:05:28 +01:00
const char *getOriginalCopyright() const override {
2011-06-05 13:38:05 +04:00
return "DreamWeb (C) Creative Reality";
}
};
REGISTER_PLUGIN_STATIC(DREAMWEB_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, DreamWebMetaEngineDetection);