diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp index 38466a9459f..a0f792dea9e 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 71872ab1b9d..eff8734d628 100644 --- a/engines/sherlock/tattoo/tattoo.h +++ b/engines/sherlock/tattoo/tattoo.h @@ -102,6 +102,11 @@ public: */ virtual void saveConfig(); + /** + * Returns true if a savegame can be loaded + */ + virtual bool canLoadGameStateCurrently(); + /** * Returns true if the game can be saved */