mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
MOHAWK: Fix MohawkEngine_Myst::runLoadDialog
This incorrectly invoked (indirectly) the runModal() method of a SaveLoadChooser, but for that one should use runModalWithPluginAndTarget instead. svn-id: r55816
This commit is contained in:
parent
41121be4d6
commit
7bac92388f
@ -219,7 +219,7 @@ void MainMenuDialog::reflowLayout() {
|
||||
}
|
||||
|
||||
void MainMenuDialog::save() {
|
||||
Common::String gameId = ConfMan.get("gameid");
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
@ -242,7 +242,7 @@ void MainMenuDialog::save() {
|
||||
}
|
||||
|
||||
void MainMenuDialog::load() {
|
||||
Common::String gameId = ConfMan.get("gameid");
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
|
@ -1147,7 +1147,17 @@ void MohawkEngine_Myst::loadResources() {
|
||||
}
|
||||
|
||||
void MohawkEngine_Myst::runLoadDialog() {
|
||||
runDialog(*_loadDialog);
|
||||
const Common::String gameId = ConfMan.get("gameid");
|
||||
|
||||
const EnginePlugin *plugin = 0;
|
||||
EngineMan.findGame(gameId, &plugin);
|
||||
|
||||
pauseEngine(true);
|
||||
int slot = _loadDialog->runModalWithPluginAndTarget(plugin, ConfMan.getActiveDomainName());
|
||||
if (slot >= 0) {
|
||||
// TODO
|
||||
}
|
||||
pauseEngine(false);
|
||||
}
|
||||
|
||||
Common::Error MohawkEngine_Myst::loadGameState(int slot) {
|
||||
|
Loading…
Reference in New Issue
Block a user