mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 19:45:07 +00:00
ASYLUM: disable saving in demo versions
This commit is contained in:
parent
dc17170673
commit
0fbe223f8a
@ -641,11 +641,15 @@ void AsylumEngine::checkAchievements() {
|
||||
// Save/Load
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool AsylumEngine::canLoadGameStateCurrently() {
|
||||
return _handler == _scene || _handler == _menu;
|
||||
return (!checkGameVersion("Demo")
|
||||
&& (_handler == _scene || _handler == _menu)
|
||||
&& !speech()->getSoundResourceId());
|
||||
}
|
||||
|
||||
bool AsylumEngine::canSaveGameStateCurrently() {
|
||||
return _handler == _scene;
|
||||
return (!checkGameVersion("Demo")
|
||||
&& (_handler == _scene)
|
||||
&& !speech()->getSoundResourceId());
|
||||
}
|
||||
|
||||
Common::Error AsylumEngine::loadGameState(int slot) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user