diff options
author | Paul Gilbert | 2015-08-08 11:42:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-08-08 11:42:25 -0400 |
commit | e9455457a896aa5020d8e5ec3489b4580c5056b0 (patch) | |
tree | 546d0a38cc618ca7db028e003cc96ab16b25b710 | |
parent | 5c1fbaff4b8ed79b0be7972bb03b8edf5043a537 (diff) | |
download | scummvm-rg350-e9455457a896aa5020d8e5ec3489b4580c5056b0.tar.gz scummvm-rg350-e9455457a896aa5020d8e5ec3489b4580c5056b0.tar.bz2 scummvm-rg350-e9455457a896aa5020d8e5ec3489b4580c5056b0.zip |
SHERLOCK: RT: Don't allow saving when credits are active
-rw-r--r-- | engines/sherlock/tattoo/tattoo.cpp | 5 | ||||
-rw-r--r-- | engines/sherlock/tattoo/tattoo.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp index 889a0429e7..b11615a793 100644 --- a/engines/sherlock/tattoo/tattoo.cpp +++ b/engines/sherlock/tattoo/tattoo.cpp @@ -194,6 +194,11 @@ void TattooEngine::saveConfig() { ConfMan.flushToDisk(); } +bool TattooEngine::canSaveGameStateCurrently() { + TattooUserInterface &ui = *(TattooUserInterface *)_ui; + return _canLoadSave && !ui._creditsWidget.active(); +} + } // End of namespace Tattoo } // End of namespace Sherlock diff --git a/engines/sherlock/tattoo/tattoo.h b/engines/sherlock/tattoo/tattoo.h index 022a0ad897..71872ab1b9 100644 --- a/engines/sherlock/tattoo/tattoo.h +++ b/engines/sherlock/tattoo/tattoo.h @@ -101,6 +101,11 @@ public: * Save the game configuration */ virtual void saveConfig(); + + /** + * Returns true if the game can be saved + */ + virtual bool canSaveGameStateCurrently(); }; } // End of namespace Tattoo |