mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
HDB: Move the engine options into the MetaEngine subclass
This commit is contained in:
parent
ea9722bcea
commit
8c46a377ec
@ -1,2 +1 @@
|
||||
engines/hdb/detection.cpp
|
||||
engines/hdb/metaengine.cpp
|
||||
|
@ -20,7 +20,6 @@
|
||||
*/
|
||||
|
||||
#include "base/plugins.h"
|
||||
#include "common/translation.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "hdb/detection.h"
|
||||
@ -30,8 +29,6 @@ static const PlainGameDescriptor hdbGames[] = {
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
#define GAMEOPTION_CHEATMODE GUIO_GAMEOPTIONS1
|
||||
|
||||
namespace HDB {
|
||||
|
||||
static const ADGameDescription gameDescriptions[] = {
|
||||
@ -116,25 +113,9 @@ static const ADGameDescription gameDescriptions[] = {
|
||||
|
||||
} // End of namespace HDB
|
||||
|
||||
static const ADExtraGuiOptionsMap optionsList[] = {
|
||||
{
|
||||
GAMEOPTION_CHEATMODE,
|
||||
{
|
||||
_s("Enable cheat mode"),
|
||||
_s("Debug info and level selection becomes available"),
|
||||
"hypercheat",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
class HDBMetaEngineDetection : public AdvancedMetaEngineDetection {
|
||||
public:
|
||||
HDBMetaEngineDetection() : AdvancedMetaEngineDetection(HDB::gameDescriptions, sizeof(ADGameDescription), hdbGames, optionsList) {
|
||||
HDBMetaEngineDetection() : AdvancedMetaEngineDetection(HDB::gameDescriptions, sizeof(ADGameDescription), hdbGames) {
|
||||
}
|
||||
|
||||
const char *getName() const override {
|
||||
|
@ -28,6 +28,8 @@ enum HDBGameFeatures {
|
||||
GF_HANDANGO = (1 << 0)
|
||||
};
|
||||
|
||||
#define GAMEOPTION_CHEATMODE GUIO_GAMEOPTIONS1
|
||||
|
||||
} // End of namespace HDB
|
||||
|
||||
#endif // HDB_DETECTION_H
|
||||
|
@ -37,6 +37,22 @@
|
||||
|
||||
namespace HDB {
|
||||
|
||||
static const ADExtraGuiOptionsMap optionsList[] = {
|
||||
{
|
||||
GAMEOPTION_CHEATMODE,
|
||||
{
|
||||
_s("Enable cheat mode"),
|
||||
_s("Debug info and level selection becomes available"),
|
||||
"hypercheat",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
const char *HDBGame::getGameId() const { return _gameDescription->gameId; }
|
||||
Common::Platform HDBGame::getPlatform() const { return _gameDescription->platform; }
|
||||
|
||||
@ -68,6 +84,10 @@ public:
|
||||
return "hdb";
|
||||
}
|
||||
|
||||
const ADExtraGuiOptionsMap *getAdvancedExtraGuiOptions() const override {
|
||||
return HDB::optionsList;
|
||||
}
|
||||
|
||||
bool hasFeature(MetaEngineFeature f) const override;
|
||||
int getMaximumSaveSlot() const override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user