ASYLUM: add support for Steam achievements
This commit is contained in:
parent
382b9b7653
commit
477cae38bc
5 changed files with 124 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "backends/keymapper/action.h"
|
||||
#include "backends/keymapper/keymap.h"
|
||||
|
||||
#include "common/achievements.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
#include "asylum/asylum.h"
|
||||
|
@ -44,6 +45,7 @@ public:
|
|||
bool hasFeature(MetaEngineFeature f) const override;
|
||||
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;
|
||||
Common::KeymapArray initKeymaps(const char *target) const override;
|
||||
const Common::AchievementDescriptionList *getAchievementDescriptionList() const override;
|
||||
};
|
||||
|
||||
bool AsylumMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
|
@ -98,6 +100,16 @@ Common::KeymapArray AsylumMetaEngine::initKeymaps(const char *target) const {
|
|||
return Keymap::arrayOf(engineKeyMap);
|
||||
}
|
||||
|
||||
const Common::AchievementDescriptionList *AsylumMetaEngine::getAchievementDescriptionList() const {
|
||||
static const Common::AchievementDescriptionList achievementDescriptionList[] = {
|
||||
{"asylum", Common::STEAM_ACHIEVEMENTS, "284050"},
|
||||
|
||||
ACHIEVEMENT_DESC_TABLE_END_MARKER
|
||||
};
|
||||
|
||||
return achievementDescriptionList;
|
||||
}
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(ASYLUM)
|
||||
REGISTER_PLUGIN_DYNAMIC(ASYLUM, PLUGIN_TYPE_ENGINE, AsylumMetaEngine);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue