Exemplo n.º 1
0
 // 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);
     }
 }
Exemplo n.º 2
0
 // 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);
     }
 }
Exemplo n.º 3
0
 /// <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);
     }
 }