PRIVATE: private-eye skeleton engine
This commit is contained in:
parent
6b08906f25
commit
c813fd25cb
6 changed files with 257 additions and 0 deletions
22
engines/private/metaengine.cpp
Normal file
22
engines/private/metaengine.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue