mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 07:11:49 +00:00
XEEN: Move the engine options into the MetaEngine subclass
This commit is contained in:
parent
d2555ce998
commit
33e8509634
@ -1,2 +1,2 @@
|
||||
engines/xeen/detection.cpp
|
||||
engines/xeen/metaengine.cpp
|
||||
engines/xeen/saves.cpp
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include "base/plugins.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
#include "xeen/detection.h"
|
||||
#include "xeen/xeen.h"
|
||||
@ -42,44 +41,12 @@ static const DebugChannelDef debugFlagList[] = {
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
#define GAMEOPTION_SHOW_ITEM_COSTS GUIO_GAMEOPTIONS1
|
||||
#define GAMEOPTION_DURABLE_ARMOR GUIO_GAMEOPTIONS2
|
||||
|
||||
#include "xeen/detection_tables.h"
|
||||
|
||||
|
||||
static const ADExtraGuiOptionsMap optionsList[] = {
|
||||
{
|
||||
GAMEOPTION_SHOW_ITEM_COSTS,
|
||||
{
|
||||
_s("Show item costs in standard inventory mode"),
|
||||
_s("Shows item costs in standard inventory mode, allowing the value of items to be compared"),
|
||||
"ShowItemCosts",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_DURABLE_ARMOR,
|
||||
{
|
||||
_s("More durable armor"),
|
||||
_s("Armor won't break until character is at -80HP, rather than merely -10HP"),
|
||||
"DurableArmor",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
class XeenMetaEngineDetection : public AdvancedMetaEngineDetection {
|
||||
public:
|
||||
XeenMetaEngineDetection() : AdvancedMetaEngineDetection(Xeen::gameDescriptions, sizeof(Xeen::XeenGameDescription),
|
||||
XeenGames, optionsList) {
|
||||
XeenGames) {
|
||||
_maxScanDepth = 3;
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,9 @@ struct XeenGameDescription {
|
||||
uint32 features;
|
||||
};
|
||||
|
||||
#define GAMEOPTION_SHOW_ITEM_COSTS GUIO_GAMEOPTIONS1
|
||||
#define GAMEOPTION_DURABLE_ARMOR GUIO_GAMEOPTIONS2
|
||||
|
||||
} // End of namespace Xeen
|
||||
|
||||
#endif // XEEN_DETECTION_H
|
||||
|
@ -27,12 +27,41 @@
|
||||
#include "common/savefile.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "common/system.h"
|
||||
#include "common/translation.h"
|
||||
#include "xeen/detection.h"
|
||||
|
||||
#define MAX_SAVES 99
|
||||
|
||||
namespace Xeen {
|
||||
|
||||
static const ADExtraGuiOptionsMap optionsList[] = {
|
||||
{
|
||||
GAMEOPTION_SHOW_ITEM_COSTS,
|
||||
{
|
||||
_s("Show item costs in standard inventory mode"),
|
||||
_s("Shows item costs in standard inventory mode, allowing the value of items to be compared"),
|
||||
"ShowItemCosts",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
GAMEOPTION_DURABLE_ARMOR,
|
||||
{
|
||||
_s("More durable armor"),
|
||||
_s("Armor won't break until character is at -80HP, rather than merely -10HP"),
|
||||
"DurableArmor",
|
||||
false,
|
||||
0,
|
||||
0
|
||||
}
|
||||
},
|
||||
|
||||
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
||||
};
|
||||
|
||||
uint32 XeenEngine::getGameID() const {
|
||||
return _gameDescription->gameID;
|
||||
}
|
||||
@ -73,6 +102,10 @@ public:
|
||||
return "xeen";
|
||||
}
|
||||
|
||||
const ADExtraGuiOptionsMap *getAdvancedExtraGuiOptions() const override {
|
||||
return Xeen::optionsList;
|
||||
}
|
||||
|
||||
bool hasFeature(MetaEngineFeature f) const override;
|
||||
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
|
||||
SaveStateList listSaves(const char *target) const override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user