mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 14:21:41 +00:00
ASYLUM: don't autosave when the player is walking/interacting
This commit is contained in:
parent
dad4565809
commit
78cb87bb78
@ -681,6 +681,11 @@ bool AsylumEngine::canSaveGameStateCurrently() {
|
||||
&& !speech()->getSoundResourceId());
|
||||
}
|
||||
|
||||
bool AsylumEngine::canSaveAutosaveCurrently() {
|
||||
return canSaveGameStateCurrently()
|
||||
&& (scene()->getActor()->getStatus() == kActorStatusEnabled);
|
||||
}
|
||||
|
||||
Common::Error AsylumEngine::loadGameState(int slot) {
|
||||
savegame()->loadList();
|
||||
savegame()->setIndex(slot);
|
||||
|
@ -202,6 +202,7 @@ public:
|
||||
bool canLoadGameStateCurrently();
|
||||
Common::Error loadGameState(int slot);
|
||||
bool canSaveGameStateCurrently();
|
||||
bool canSaveAutosaveCurrently();
|
||||
Common::Error saveGameState(int slot, const Common::String &desc, bool isAutosave = false);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user