COMPOSER: Added loading from launcher support

This commit is contained in:
upthorn 2012-06-23 03:03:52 -07:00 committed by angstsmurf
parent 69a6a200a2
commit 582006d1cf
2 changed files with 5 additions and 2 deletions

View file

@ -169,7 +169,10 @@ Common::Error ComposerEngine::run() {
} else if (_needsUpdate) {
redraw();
}
if (ConfMan.hasKey("save_slot")) {
loadGameState(ConfMan.getInt("save_slot"));
ConfMan.removeKey("save_slot", Common::ConfigManager::kTransientDomain);
}
while (_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_LBUTTONDOWN:

View file

@ -464,7 +464,7 @@ bool ComposerMetaEngine::createInstance(OSystem *syst, Engine **engine, const AD
}
bool ComposerMetaEngine::hasFeature(MetaEngineFeature f) const {
return (f == kSupportsListSaves);
return ((f == kSupportsListSaves) || (f == kSupportsLoadingDuringStartup));
}
Common::String getSaveName(Common::InSaveFile *in) {