mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
142 lines
3.6 KiB
C++
142 lines
3.6 KiB
C++
/* 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 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#include "base/plugins.h"
|
|
#include "engines/advancedDetector.h"
|
|
|
|
#include "common/config-manager.h"
|
|
#include "common/translation.h"
|
|
|
|
#include "mtropolis/detection.h"
|
|
|
|
static const PlainGameDescriptor mTropolisGames[] = {
|
|
{"obsidian", "Obsidian"},
|
|
{nullptr, nullptr}
|
|
};
|
|
|
|
#include "mtropolis/detection_tables.h"
|
|
|
|
namespace MTropolis {
|
|
|
|
static const ADExtraGuiOptionsMap optionsList[] = {
|
|
{
|
|
GAMEOPTION_WIDESCREEN_MOD,
|
|
{
|
|
_s("16:9 widescreen mod"),
|
|
_s("Removes letterboxing and moves some display elements, improving coverage on widescreen displays"),
|
|
"mtropolis_mod_obsidian_widescreen",
|
|
false,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
{
|
|
GAMEOPTION_DYNAMIC_MIDI,
|
|
{
|
|
_s("Improved music mixing"),
|
|
_s("Enables dynamic MIDI mixer, improving quality, but behaving less like mTropolis Player."),
|
|
"mtropolis_mod_dynamic_midi",
|
|
true,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
{
|
|
GAMEOPTION_AUTO_SAVE_AT_CHECKPOINTS,
|
|
{
|
|
_s("Autosave at progress points"),
|
|
_s("Automatically saves the game after completing puzzles and chapters."),
|
|
"mtropolis_mod_auto_save_at_checkpoints",
|
|
true,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
{
|
|
GAMEOPTION_ENABLE_SHORT_TRANSITIONS,
|
|
{
|
|
_s("Enable short transitions"),
|
|
_s("Enables transitions that are set to maximum rate instead of skipping them."),
|
|
"mtropolis_mod_minimum_transition_duration",
|
|
true,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
{
|
|
GAMEOPTION_SOUND_EFFECT_SUBTITLES,
|
|
{
|
|
_s("Enable subtitles for important sound effects"),
|
|
_s("Enables subtitles for important sound effects. This may reduce the difficulty of sound recognition puzzles and minigames."),
|
|
"mtropolis_mod_sound_gameplay_subtitles",
|
|
false,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
{
|
|
GAMEOPTION_LAUNCH_DEBUG,
|
|
{
|
|
_s("Start with debugger"),
|
|
_s("Starts with the debugger dashboard active."),
|
|
"mtropolis_debug_at_start",
|
|
false,
|
|
0,
|
|
0
|
|
}
|
|
},
|
|
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
|
};
|
|
|
|
} // End of namespace MTropolis
|
|
|
|
static const char *directoryGlobs[] = {
|
|
"Obsidian",
|
|
"RESOURCE",
|
|
"Saved Games",
|
|
nullptr
|
|
};
|
|
|
|
class MTropolisMetaEngineDetection : public AdvancedMetaEngineDetection {
|
|
public:
|
|
MTropolisMetaEngineDetection() : AdvancedMetaEngineDetection(MTropolis::gameDescriptions, sizeof(MTropolis::MTropolisGameDescription), mTropolisGames, MTropolis::optionsList) {
|
|
_guiOptions = GUIO3(GAMEOPTION_DYNAMIC_MIDI, GAMEOPTION_LAUNCH_DEBUG, GAMEOPTION_ENABLE_SHORT_TRANSITIONS);
|
|
_maxScanDepth = 3;
|
|
_directoryGlobs = directoryGlobs;
|
|
}
|
|
|
|
const char *getName() const override {
|
|
return "mtropolis";
|
|
}
|
|
|
|
const char *getEngineName() const override {
|
|
return "mTropolis";
|
|
}
|
|
|
|
const char *getOriginalCopyright() const override {
|
|
return "mTropolis (C) mFactory/Quark";
|
|
}
|
|
|
|
bool canPlayUnknownVariants() const override { return true; }
|
|
};
|
|
|
|
REGISTER_PLUGIN_STATIC(MTROPOLIS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, MTropolisMetaEngineDetection);
|