diff options
Diffstat (limited to 'engines/mohawk/detection.cpp')
-rw-r--r-- | engines/mohawk/detection.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/mohawk/detection.cpp b/engines/mohawk/detection.cpp index 439ea152c4..82f901d9ad 100644 --- a/engines/mohawk/detection.cpp +++ b/engines/mohawk/detection.cpp @@ -147,7 +147,7 @@ static const PlainGameDescriptor mohawkGames[] = { {"stellaluna", "Stellaluna"}, {"sheila", "Sheila Rae, the Brave"}, {"rugratsps", "Rugrats Print Shop" }, - {0, 0} + {nullptr, nullptr} }; #include "mohawk/detection_tables.h" @@ -159,7 +159,7 @@ static const char *directoryGlobs[] = { "program", "95instal", "Rugrats Adventure Game", - 0 + nullptr }; static const ADExtraGuiOptionsMap optionsList[] = { @@ -184,25 +184,25 @@ public: _directoryGlobs = directoryGlobs; } - virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { + const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override { return detectGameFilebased(allFiles, fslist, Mohawk::fileBased); } - virtual const char *getName() const { + const char *getName() const override { return "Mohawk"; } - virtual const char *getOriginalCopyright() const { + const char *getOriginalCopyright() const override { return "Myst and Riven (C) Cyan Worlds\nMohawk OS (C) Ubisoft"; } - virtual bool hasFeature(MetaEngineFeature f) const; - virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const; - virtual SaveStateList listSaves(const char *target) const; + bool hasFeature(MetaEngineFeature f) const override; + bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override; + SaveStateList listSaves(const char *target) const override; SaveStateList listSavesForPrefix(const char *prefix, const char *extension) const; - virtual int getMaximumSaveSlot() const { return 999; } - virtual void removeSaveState(const char *target, int slot) const; - virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; + int getMaximumSaveSlot() const override { return 999; } + void removeSaveState(const char *target, int slot) const override; + SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override; }; bool MohawkMetaEngine::hasFeature(MetaEngineFeature f) const { @@ -354,7 +354,7 @@ bool MohawkMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGa } } - return (gd != 0); + return (gd != nullptr); } #if PLUGIN_ENABLED_DYNAMIC(MOHAWK) |