SHERLOCK: RT: Disable Loading from GMM During Prolog or Credits.

Loading from the GMM during the prolog resulted in the mouse cursor
getting stuck hidden and possibly other game state issues, so best to
disable loading in these cases as already was done for saving.

This fixes bug Trac #10746.
This commit is contained in:
D G Turner 2018-10-17 23:29:01 +01:00
parent 8a374bdf0c
commit 15306581ab
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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
*/