TWP: Disable savegame when necessary

This commit is contained in:
scemino 2024-02-08 20:48:45 +01:00 committed by Eugene Sandulenko
parent 98dfa1c025
commit 4b3f6d25e5
2 changed files with 3 additions and 1 deletions

View File

@ -283,6 +283,8 @@ static void drawGeneral() {
ImGui::Checkbox("Cursor", &g_engine->_inputState._showCursor);
ImGui::SameLine();
ImGui::Checkbox("Verbs", &g_engine->_inputState._inputVerbsActive);
ImGui::SameLine();
ImGui::Checkbox("Allow SaveGame", &g_engine->_saveGameManager._allowSaveGame);
ImGui::Separator();
bool isSwitcherOn = g_engine->_actorSwitcher._mode == asOn;

View File

@ -108,7 +108,7 @@ public:
return true;
}
bool canSaveGameStateCurrently(Common::U32String *msg = nullptr) override {
return true;
return _saveGameManager._allowSaveGame;
}
virtual Common::String getSaveStateName(int slot) const override;