[Scummvm-cvs-logs] SF.net SVN: scummvm:[34886] scummvm/trunk/engines/dialogs.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Mon Nov 3 20:55:23 CET 2008
Revision: 34886
http://scummvm.svn.sourceforge.net/scummvm/?rev=34886&view=rev
Author: lordhoto
Date: 2008-11-03 19:55:20 +0000 (Mon, 03 Nov 2008)
Log Message:
-----------
Check for engine support for loading/saving via GMM when enabling/disabling the buttons.
Modified Paths:
--------------
scummvm/trunk/engines/dialogs.cpp
Modified: scummvm/trunk/engines/dialogs.cpp
===================================================================
--- scummvm/trunk/engines/dialogs.cpp 2008-11-03 19:51:34 UTC (rev 34885)
+++ scummvm/trunk/engines/dialogs.cpp 2008-11-03 19:55:20 UTC (rev 34886)
@@ -193,8 +193,12 @@
}
void MainMenuDialog::reflowLayout() {
- _loadButton->setEnabled(_engine->canLoadGameStateCurrently());
- _saveButton->setEnabled(_engine->canSaveGameStateCurrently());
+ 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()) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list