ENGINES: METAENGINE: Move initKeymaps into MetaEngineConnect.

- Used by Sky, for example.
This commit is contained in:
aryanrawlani28 2020-08-03 23:51:49 +05:30 committed by Eugene Sandulenko
parent 5d3292d844
commit fd1e333100
2 changed files with 6 additions and 6 deletions

View file

@ -49,7 +49,7 @@ Common::String MetaEngineConnect::getSavegameFile(int saveGameIdx, const char *t
} }
} }
Common::KeymapArray MetaEngine::initKeymaps(const char *target) const { Common::KeymapArray MetaEngineConnect::initKeymaps(const char *target) const {
using namespace Common; using namespace Common;
Keymap *engineKeyMap = new Keymap(Keymap::kKeymapTypeGame, "engine-default", _("Default game keymap")); Keymap *engineKeyMap = new Keymap(Keymap::kKeymapTypeGame, "engine-default", _("Default game keymap"));

View file

@ -178,11 +178,6 @@ public:
virtual const Common::AchievementsInfo getAchievementsInfo(const Common::String &target) const { virtual const Common::AchievementsInfo getAchievementsInfo(const Common::String &target) const {
return Common::AchievementsInfo(); return Common::AchievementsInfo();
} }
/**
* Return the keymap used by the target.
*/
virtual Common::Array<Common::Keymap *> initKeymaps(const char *target) const;
}; };
/** /**
@ -324,6 +319,11 @@ public:
return getSavegameFile(kSavegameFilePattern, target); return getSavegameFile(kSavegameFilePattern, target);
} }
/**
* Return the keymap used by the target.
*/
virtual Common::Array<Common::Keymap *> initKeymaps(const char *target) const;
/** @name MetaEngineFeature flags */ /** @name MetaEngineFeature flags */
//@{ //@{