2020-12-24 16:10:32 -03:00
|
|
|
#include "private/private.h"
|
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
|
|
|
class PrivateMetaEngine : public AdvancedMetaEngine {
|
|
|
|
public:
|
2021-01-07 23:38:18 -03:00
|
|
|
const char *getName() const override {
|
|
|
|
return "private";
|
|
|
|
}
|
2020-12-24 16:10:32 -03:00
|
|
|
|
2021-01-07 23:38:18 -03:00
|
|
|
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
|
2020-12-24 16:10:32 -03:00
|
|
|
};
|
|
|
|
|
2021-02-11 22:26:04 -03:00
|
|
|
Common::Error PrivateMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {
|
|
|
|
*engine = new Private::PrivateEngine(syst, gd);
|
2021-01-07 23:38:18 -03:00
|
|
|
return Common::kNoError;
|
2020-12-24 16:10:32 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
#if PLUGIN_ENABLED_DYNAMIC(PRIVATE)
|
|
|
|
REGISTER_PLUGIN_DYNAMIC(PRIVATE, PLUGIN_TYPE_ENGINE, PrivateMetaEngine);
|
|
|
|
#else
|
|
|
|
REGISTER_PLUGIN_STATIC(PRIVATE, PLUGIN_TYPE_ENGINE, PrivateMetaEngine);
|
|
|
|
#endif
|