scummvm/engines/private/metaengine.cpp

23 lines
717 B
C++
Raw Normal View History

2020-12-24 16:10:32 -03:00
#include "private/private.h"
#include "engines/advancedDetector.h"
class PrivateMetaEngine : public AdvancedMetaEngine {
public:
const char *getName() const override {
return "private";
}
2020-12-24 16:10:32 -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);
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