mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
TSAGE: Don't allow saving in Ringworld copy protection dialog
This commit is contained in:
parent
3ba76e354a
commit
efd594993d
@ -198,15 +198,14 @@ Scene *RingworldGame::createScene(int sceneNumber) {
|
||||
bool RingworldGame::canLoadGameStateCurrently() {
|
||||
// Don't allow a game to be loaded if a dialog is active
|
||||
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if it is currently okay to save the game
|
||||
*/
|
||||
bool RingworldGame::canSaveGameStateCurrently() {
|
||||
// Don't allow a game to be saved if a dialog is active
|
||||
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1);
|
||||
// Don't allow a game to be saved if a dialog is active, or the copy protection dialog
|
||||
return !g_globals->getFlag(50) && (g_globals->_gfxManagers.size() == 1) && g_globals->_sceneManager._sceneNumber != 2310;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user