Check for engine support for loading/saving via GMM when enabling/disabling the buttons.
svn-id: r34886
This commit is contained in:
parent
6eab0dcc6e
commit
39a1eb8191
1 changed files with 6 additions and 2 deletions
|
@ -193,8 +193,12 @@ void MainMenuDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
|
|||
}
|
||||
|
||||
void MainMenuDialog::reflowLayout() {
|
||||
if (_engine->hasFeature(Engine::kSupportsListSaves)) {
|
||||
if (_engine->hasFeature(Engine::kSupportsLoadingDuringRuntime))
|
||||
_loadButton->setEnabled(_engine->canLoadGameStateCurrently());
|
||||
if (_engine->hasFeature(Engine::kSupportsSavingDuringRuntime))
|
||||
_saveButton->setEnabled(_engine->canSaveGameStateCurrently());
|
||||
}
|
||||
|
||||
#ifndef DISABLE_FANCY_THEMES
|
||||
if (g_gui.xmlEval()->getVar("Globals.ShowGlobalMenuLogo", 0) == 1 && g_gui.theme()->supportsImages()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue