2020-08-06 17:23:11 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 17:47:58 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2020-08-06 17:23:11 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2020-08-06 17:23:11 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "lastexpress/lastexpress.h"
|
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
|
|
|
namespace LastExpress {
|
|
|
|
|
2020-10-02 06:55:08 +00:00
|
|
|
class LastExpressMetaEngine : public AdvancedMetaEngine {
|
2020-08-06 17:23:11 +00:00
|
|
|
public:
|
|
|
|
const char *getName() const override {
|
|
|
|
return "lastexpress";
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
2020-11-17 00:06:05 +00:00
|
|
|
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;
|
2020-08-06 17:23:11 +00:00
|
|
|
};
|
|
|
|
|
2020-11-17 00:06:05 +00:00
|
|
|
Common::Error LastExpressMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {
|
|
|
|
*engine = new LastExpressEngine(syst, (const ADGameDescription *)gd);
|
|
|
|
return Common::kNoError;
|
2020-08-06 17:23:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool LastExpressEngine::isDemo() const {
|
|
|
|
return (bool)(_gameDescription->flags & ADGF_DEMO);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // End of namespace LastExpress
|
|
|
|
|
|
|
|
#if PLUGIN_ENABLED_DYNAMIC(LASTEXPRESS)
|
2020-10-02 06:55:08 +00:00
|
|
|
REGISTER_PLUGIN_DYNAMIC(LASTEXPRESS, PLUGIN_TYPE_ENGINE, LastExpress::LastExpressMetaEngine);
|
2020-08-06 17:23:11 +00:00
|
|
|
#else
|
2020-10-02 06:55:08 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(LASTEXPRESS, PLUGIN_TYPE_ENGINE, LastExpress::LastExpressMetaEngine);
|
2020-08-06 17:23:11 +00:00
|
|
|
#endif
|