mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 16:35:20 +00:00
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:
parent
8a374bdf0c
commit
15306581ab
@ -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;
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user