diff options
Diffstat (limited to 'engines')
-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 |