mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
DM: Add override keywords
This commit is contained in:
parent
8313b2b443
commit
10c50b40ab
@ -49,7 +49,7 @@ private:
|
||||
|
||||
public:
|
||||
explicit Console(DM::DMEngine *vm);
|
||||
virtual ~Console(void) {}
|
||||
~Console(void) override {}
|
||||
|
||||
bool _debugGodmodeMana;
|
||||
bool _debugGodmodeHP;
|
||||
|
@ -100,25 +100,25 @@ public:
|
||||
DMMetaEngine() : AdvancedMetaEngine(DM::gameDescriptions, sizeof(DMADGameDescription), DMGames, optionsList) {
|
||||
}
|
||||
|
||||
virtual const char *getEngineId() const {
|
||||
const char *getEngineId() const override {
|
||||
return "dm";
|
||||
}
|
||||
|
||||
virtual const char *getName() const {
|
||||
const char *getName() const override {
|
||||
return "Dungeon Master";
|
||||
}
|
||||
|
||||
virtual const char *getOriginalCopyright() const {
|
||||
const char *getOriginalCopyright() const override {
|
||||
return "Dungeon Master (C) 1987 FTL Games";
|
||||
}
|
||||
|
||||
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
||||
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override {
|
||||
if (desc)
|
||||
*engine = new DM::DMEngine(syst, (const DMADGameDescription*)desc);
|
||||
return desc != nullptr;
|
||||
}
|
||||
|
||||
virtual bool hasFeature(MetaEngineFeature f) const {
|
||||
bool hasFeature(MetaEngineFeature f) const override {
|
||||
return
|
||||
(f == kSupportsListSaves) ||
|
||||
(f == kSupportsLoadingDuringStartup) ||
|
||||
@ -127,9 +127,9 @@ public:
|
||||
(f == kSavesSupportCreationDate);
|
||||
}
|
||||
|
||||
virtual int getMaximumSaveSlot() const { return 99; }
|
||||
int getMaximumSaveSlot() const override { return 99; }
|
||||
|
||||
virtual SaveStateList listSaves(const char *target) const {
|
||||
SaveStateList listSaves(const char *target) const override {
|
||||
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
|
||||
SaveGameHeader header;
|
||||
Common::String pattern = target;
|
||||
@ -159,7 +159,7 @@ public:
|
||||
return saveList;
|
||||
}
|
||||
|
||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const {
|
||||
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override {
|
||||
Common::String filename = Common::String::format("%s.%03u", target, slot);
|
||||
Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(filename.c_str());
|
||||
|
||||
@ -179,7 +179,7 @@ public:
|
||||
return SaveStateDescriptor();
|
||||
}
|
||||
|
||||
virtual void removeSaveState(const char *target, int slot) const {}
|
||||
void removeSaveState(const char *target, int slot) const override {}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -222,11 +222,11 @@ private:
|
||||
|
||||
public:
|
||||
explicit DMEngine(OSystem *syst, const DMADGameDescription *gameDesc);
|
||||
~DMEngine();
|
||||
virtual bool hasFeature(EngineFeature f) const override;
|
||||
~DMEngine() override;
|
||||
bool hasFeature(EngineFeature f) const override;
|
||||
|
||||
virtual Common::Error loadGameState(int slot) override;
|
||||
virtual bool canLoadGameStateCurrently() override;
|
||||
Common::Error loadGameState(int slot) override;
|
||||
bool canLoadGameStateCurrently() override;
|
||||
|
||||
bool isDemo() const;
|
||||
|
||||
@ -237,7 +237,7 @@ public:
|
||||
uint16 getRandomNumber(uint32 max) { return _rnd->getRandomNumber(max - 1); }
|
||||
int16 ordinalToIndex(int16 val); // @ M01_ORDINAL_TO_INDEX
|
||||
int16 indexToOrdinal(int16 val); // @ M00_INDEX_TO_ORDINAL
|
||||
virtual Common::Error run() override; // @ main
|
||||
Common::Error run() override; // @ main
|
||||
void saveGame(); // @ F0433_STARTEND_ProcessCommand140_SaveGame_CPSCDF
|
||||
LoadgameResult loadgame(int16 slot); // @ F0435_STARTEND_LoadGame_CPSF
|
||||
void endGame(bool doNotDrawCreditsOnly); // @ F0444_STARTEND_Endgame
|
||||
|
Loading…
Reference in New Issue
Block a user