// Deletes states to follow the state storage size limits. // Used after changing the settings too. private void LimitStateCount() { if (Count + 1 > MaxStates) { _decay.Trigger(Count + 1 - MaxStates); } }
// Deletes states to follow the state storage size limits. // Used after changing the settings too. private void LimitStateCount() { if (Count + 1 > MaxStates) { _decay.Trigger(_emulator.Frame, Count + 1 - MaxStates); } }
/// <summary> /// Deletes states to follow the state storage size limits. /// Used after changing the settings too. /// </summary> public void LimitStateCount() { if (StateCount + 1 > _maxStates || DiskUsed > (ulong)Settings.DiskCapacitymb * 1024 * 1024) { _decay.Trigger(StateCount + 1 - _maxStates); } }