Skip to content

Commit

Permalink
COMPOSER: Added loading from launcher support
Browse files Browse the repository at this point in the history
  • Loading branch information
upthorn authored and angstsmurf committed Oct 18, 2016
1 parent 69a6a20 commit 582006d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion engines/composer/composer.cpp
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion engines/composer/detection.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 582006d

Please sign in to comment.