Difference between revisions of "HOWTO-Engines"

Jump to navigation Jump to search
30 bytes added ,  21:05, 4 December 2020
→‎Example: engines/quux/metaengine.cpp: Update to reflect recent changes
(Update to reflect the recent MetaEngine changes)
(→‎Example: engines/quux/metaengine.cpp: Update to reflect recent changes)
Line 352: Line 352:
}
}


bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
};
};


bool QuuxMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
Common::Error QuuxMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
*engine = new Quux::QuuxEngine(syst);
*engine = new Quux::QuuxEngine(syst);
return true;
return Common::kNoError;
}
}


TrustedUser
2,147

edits

Navigation menu