scummvm/engines/private/metaengine.cpp
2021-03-04 02:06:59 +01:00

23 lines
694 B
C++

#include "private/private.h"
#include "engines/advancedDetector.h"
class PrivateMetaEngine : public AdvancedMetaEngine {
public:
const char *getName() const override {
return "private";
}
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
};
Common::Error PrivateMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
*engine = new Private::PrivateEngine(syst);
return Common::kNoError;
}
#if PLUGIN_ENABLED_DYNAMIC(PRIVATE)
REGISTER_PLUGIN_DYNAMIC(PRIVATE, PLUGIN_TYPE_ENGINE, PrivateMetaEngine);
#else
REGISTER_PLUGIN_STATIC(PRIVATE, PLUGIN_TYPE_ENGINE, PrivateMetaEngine);
#endif