Started to get rid of Common::EncapsulatedADGameDesc (using plain Common::ADGameDescription instead)
svn-id: r31121
This commit is contained in:
parent
aa81050117
commit
6547ef6e12
14 changed files with 40 additions and 43 deletions
|
@ -151,11 +151,11 @@ public:
|
|||
return "Inherit the Earth (C) Wyrmkeep Entertainment";
|
||||
}
|
||||
|
||||
virtual bool createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const;
|
||||
virtual bool createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const;
|
||||
};
|
||||
|
||||
bool SagaMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const {
|
||||
const Saga::SAGAGameDescription *gd = (const Saga::SAGAGameDescription *)(encapsulatedDesc.realDesc);
|
||||
bool SagaMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const {
|
||||
const Saga::SAGAGameDescription *gd = (const Saga::SAGAGameDescription *)desc;
|
||||
if (gd) {
|
||||
*engine = new Saga::SagaEngine(syst, gd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue