LASTEXPRESS: Split detection features & adapt to new plugins.
This commit is contained in:
parent
0fbfa709a2
commit
06cb6c50e6
4 changed files with 61 additions and 22 deletions
|
@ -20,7 +20,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "lastexpress/lastexpress.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
namespace LastExpress {
|
||||
|
@ -241,26 +240,8 @@ public:
|
|||
const char *getOriginalCopyright() const override {
|
||||
return "The Last Express (C) 1997 Smoking Car Productions";
|
||||
}
|
||||
|
||||
protected:
|
||||
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;
|
||||
};
|
||||
|
||||
bool LastExpressMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {
|
||||
if (gd) {
|
||||
*engine = new LastExpressEngine(syst, (const ADGameDescription *)gd);
|
||||
}
|
||||
return gd != 0;
|
||||
}
|
||||
|
||||
bool LastExpressEngine::isDemo() const {
|
||||
return (bool)(_gameDescription->flags & ADGF_DEMO);
|
||||
}
|
||||
|
||||
} // End of namespace LastExpress
|
||||
|
||||
#if PLUGIN_ENABLED_DYNAMIC(LASTEXPRESS)
|
||||
REGISTER_PLUGIN_DYNAMIC(LASTEXPRESS, PLUGIN_TYPE_ENGINE, LastExpress::LastExpressMetaEngine);
|
||||
#else
|
||||
REGISTER_PLUGIN_STATIC(LASTEXPRESS, PLUGIN_TYPE_ENGINE, LastExpress::LastExpressMetaEngine);
|
||||
#endif
|
||||
REGISTER_PLUGIN_STATIC(LASTEXPRESS_DETECTION, PLUGIN_TYPE_METAENGINE, LastExpress::LastExpressMetaEngine);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue