diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp index 69d9b932ac0..25d8e18d38f 100644 --- a/engines/hugo/detection.cpp +++ b/engines/hugo/detection.cpp @@ -136,25 +136,25 @@ public: HugoMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(HugoGameDescription), hugoGames) { } - const char *getEngineId() const { + const char *getEngineId() const override { return "hugo"; } - const char *getName() const { + const char *getName() const override { return "Hugo"; } - const char *getOriginalCopyright() const { + const char *getOriginalCopyright() const override { return "Hugo Engine (C) 1989-1997 David P. Gray"; } - bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const; + bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override; bool hasFeature(MetaEngineFeature f) const override; - int getMaximumSaveSlot() const; - SaveStateList listSaves(const char *target) const; - SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const; - void removeSaveState(const char *target, int slot) const; + int getMaximumSaveSlot() const override; + SaveStateList listSaves(const char *target) const override; + SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override; + void removeSaveState(const char *target, int slot) const override; }; bool HugoMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const { diff --git a/engines/hugo/hugo.h b/engines/hugo/hugo.h index bec1967b02a..601df3369a6 100644 --- a/engines/hugo/hugo.h +++ b/engines/hugo/hugo.h @@ -239,7 +239,7 @@ public: Maze _maze; // Maze control structure hugoBoot _boot; // Boot info structure - GUI::Debugger *getDebugger(); + GUI::Debugger *getDebugger() override; Common::RandomSource *_rnd; @@ -263,8 +263,8 @@ public: return *s_Engine; } - virtual bool canLoadGameStateCurrently(); - virtual bool canSaveGameStateCurrently(); + virtual bool canLoadGameStateCurrently() override; + virtual bool canSaveGameStateCurrently() override; bool loadHugoDat(); int8 getTPS() const; @@ -277,7 +277,7 @@ public: void readScreenFiles(const int screen); void setNewScreen(const int screen); void shutdown(); - void syncSoundSettings(); + void syncSoundSettings() override; Status &getGameStatus(); int getScore() const; @@ -285,8 +285,8 @@ public: void adjustScore(const int adjustment); int getMaxScore() const; void setMaxScore(const int newScore); - Common::Error saveGameState(int slot, const Common::String &desc); - Common::Error loadGameState(int slot); + Common::Error saveGameState(int slot, const Common::String &desc) override; + Common::Error loadGameState(int slot) override; bool hasFeature(EngineFeature f) const override; const char *getCopyrightString() const; @@ -309,7 +309,7 @@ public: protected: // Engine APIs - Common::Error run(); + Common::Error run() override; private: static const int kTurboTps = 16; // This many in turbo mode