mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 18:02:05 +00:00
TSAGE: Disable GMM Save/Load buttons when saving/loading not allowed
This commit is contained in:
parent
8fe65b52cf
commit
e9a1035f52
@ -101,14 +101,14 @@ Common::Error TSageEngine::run() {
|
||||
* Returns true if it is currently okay to restore a game
|
||||
*/
|
||||
bool TSageEngine::canLoadGameStateCurrently() {
|
||||
return _globals->getFlag(50) == 0;
|
||||
return (_globals->getFlag(50) == 0) && _globals->_player._uiEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if it is currently okay to save the game
|
||||
*/
|
||||
bool TSageEngine::canSaveGameStateCurrently() {
|
||||
return _globals->getFlag(50) == 0;
|
||||
return (_globals->getFlag(50) == 0) && _globals->_player._uiEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user