2020-10-10 01:30:49 -07:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
|
|
|
#include "asylum/asylum.h"
|
|
|
|
|
|
|
|
|
|
|
|
class AsylumMetaEngine : public AdvancedMetaEngine {
|
|
|
|
public:
|
2021-02-12 12:07:09 +03:00
|
|
|
virtual const char *getName() const override {
|
2021-02-19 15:27:13 +00:00
|
|
|
return "asylum";
|
2020-10-10 01:30:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual const char *getOriginalCopyright() const {
|
|
|
|
return "Sanitarium (c) ASC Games";
|
|
|
|
}
|
|
|
|
|
2021-02-12 12:07:09 +03:00
|
|
|
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;
|
2020-10-10 01:30:49 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
bool Asylum::AsylumEngine::hasFeature(EngineFeature f) const {
|
2021-05-14 12:56:26 +03:00
|
|
|
return (f == kSupportsReturnToLauncher);
|
2020-10-10 01:30:49 -07:00
|
|
|
}
|
|
|
|
|
2021-02-12 12:07:09 +03:00
|
|
|
Common::Error AsylumMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
|
2020-10-10 01:30:49 -07:00
|
|
|
if (desc) {
|
|
|
|
*engine = new Asylum::AsylumEngine(syst, desc);
|
|
|
|
}
|
2021-02-12 12:07:09 +03:00
|
|
|
return desc ? Common::kNoError : Common::kUnsupportedGameidError;
|
2020-10-10 01:30:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#if PLUGIN_ENABLED_DYNAMIC(ASYLUM)
|
|
|
|
REGISTER_PLUGIN_DYNAMIC(ASYLUM, PLUGIN_TYPE_ENGINE, AsylumMetaEngine);
|
|
|
|
#else
|
|
|
|
REGISTER_PLUGIN_STATIC(ASYLUM, PLUGIN_TYPE_ENGINE, AsylumMetaEngine);
|
|
|
|
#endif
|