COMPOSER: Added loading from launcher support
This commit is contained in:
parent
69a6a200a2
commit
582006d1cf
2 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue