Started to get rid of Common::EncapsulatedADGameDesc (using plain Common::ADGameDescription instead)

svn-id: r31121
This commit is contained in:
Max Horn 2008-03-14 17:31:04 +00:00
parent aa81050117
commit 6547ef6e12
14 changed files with 40 additions and 43 deletions

View file

@ -135,11 +135,11 @@ public:
return "Touche: The Adventures of the 5th Musketeer (C) Clipper Software";
}
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 ToucheMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::EncapsulatedADGameDesc &encapsulatedDesc) const {
const Common::ADGameDescription *gd = encapsulatedDesc.realDesc;
bool ToucheMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const {
const Common::ADGameDescription *gd = desc;
if (gd) {
*engine = new Touche::ToucheEngine(syst, gd->language);
}