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 38466a9459..a0f792dea9 100644 --- a/engines/sherlock/tattoo/tattoo.cpp +++ b/engines/sherlock/tattoo/tattoo.cpp @@ -204,6 +204,11 @@ void TattooEngine::saveConfig() { ConfMan.flushToDisk(); } +bool TattooEngine::canLoadGameStateCurrently() { + TattooUserInterface &ui = *(TattooUserInterface *)_ui; + return _canLoadSave && !ui._creditsWidget.active() && !_runningProlog; +} + bool TattooEngine::canSaveGameStateCurrently() { TattooUserInterface &ui = *(TattooUserInterface *)_ui; return _canLoadSave && !ui._creditsWidget.active() && !_runningProlog; diff --git a/engines/sherlock/tattoo/tattoo.h b/engines/sherlock/tattoo/tattoo.h index 71872ab1b9..eff8734d62 100644 --- a/engines/sherlock/tattoo/tattoo.h +++ b/engines/sherlock/tattoo/tattoo.h @@ -103,6 +103,11 @@ public: virtual void saveConfig(); /** + * Returns true if a savegame can be loaded + */ + virtual bool canLoadGameStateCurrently(); + + /** * Returns true if the game can be saved */ virtual bool canSaveGameStateCurrently(); |