ALL: Sync with ScummVM - rev. b272701834
This commit is contained in:
parent
1b9a28eb54
commit
455a409cab
113 changed files with 9871 additions and 9471 deletions
|
@ -76,14 +76,14 @@ Common::String SaveLoadChooser::createDefaultSaveDescription(const int slot) con
|
|||
int SaveLoadChooser::runModalWithCurrentTarget() {
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
const Plugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
|
||||
return runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
|
||||
}
|
||||
|
||||
int SaveLoadChooser::runModalWithPluginAndTarget(const EnginePlugin *plugin, const String &target) {
|
||||
selectChooser(**plugin);
|
||||
int SaveLoadChooser::runModalWithPluginAndTarget(const Plugin *plugin, const String &target) {
|
||||
selectChooser(plugin->get<MetaEngine>());
|
||||
if (!_impl)
|
||||
return -1;
|
||||
|
||||
|
@ -98,10 +98,10 @@ int SaveLoadChooser::runModalWithPluginAndTarget(const EnginePlugin *plugin, con
|
|||
|
||||
int ret;
|
||||
do {
|
||||
ret = _impl->run(target, &(**plugin));
|
||||
ret = _impl->run(target, &plugin->get<MetaEngine>());
|
||||
#ifndef DISABLE_SAVELOADCHOOSER_GRID
|
||||
if (ret == kSwitchSaveLoadDialog) {
|
||||
selectChooser(**plugin);
|
||||
selectChooser(plugin->get<MetaEngine>());
|
||||
}
|
||||
#endif // !DISABLE_SAVELOADCHOOSER_GRID
|
||||
} while (ret < -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue