mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
SHERLOCK: RT: Don't allow saving when credits are active
This commit is contained in:
parent
5c1fbaff4b
commit
e9455457a8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user