ASYLUM: Fix for Correct MetaEngine Feature API
This was previously showing the Launcher Load button as active, but with no saves present as most of the API was not implemented. This corrects that so that the various Advanced Engine / MetaEngine APIs for loading / saving from launcher and command line may be implemented in future.
This commit is contained in:
parent
0b89bc6438
commit
d84d002212
2 changed files with 9 additions and 4 deletions
|
@ -138,6 +138,10 @@ AsylumEngine::~AsylumEngine() {
|
|||
_gameDescription = NULL;
|
||||
}
|
||||
|
||||
bool AsylumEngine::hasFeature(EngineFeature f) const {
|
||||
return (f == kSupportsReturnToLauncher);
|
||||
}
|
||||
|
||||
Common::Error AsylumEngine::run() {
|
||||
// Initialize the graphics
|
||||
initGraphics(640, 480);
|
||||
|
|
|
@ -33,20 +33,21 @@
|
|||
|
||||
class AsylumMetaEngine : public AdvancedMetaEngine {
|
||||
public:
|
||||
virtual const char *getName() const override {
|
||||
const char *getName() const override {
|
||||
return "asylum";
|
||||
}
|
||||
|
||||
virtual const char *getOriginalCopyright() const {
|
||||
const char *getOriginalCopyright() const {
|
||||
return "Sanitarium (c) ASC Games";
|
||||
}
|
||||
|
||||
bool hasFeature(MetaEngineFeature f) const;
|
||||
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;
|
||||
Common::KeymapArray initKeymaps(const char *target) const override;
|
||||
};
|
||||
|
||||
bool Asylum::AsylumEngine::hasFeature(EngineFeature f) const {
|
||||
return (f == kSupportsReturnToLauncher);
|
||||
bool AsylumMetaEngine::hasFeature(MetaEngineFeature f) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
Common::Error AsylumMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue