This commit is contained in:
adelikat 2019-06-15 15:43:22 -05:00
parent 7f43fb09af
commit 2a8b4504cd
3 changed files with 10 additions and 14 deletions

View File

@ -38,18 +38,16 @@ namespace BizHawk.Client.Common
bool IsMarkerState(int frame);
int GetStateIndexByFrame(int frame);
int GetStateFrameByIndex(int index);
void UpdateStateFrequency();
// ********* Delete these **********
void MountWriteAccess();
// *********** Reconsider these ************/
void LimitStateCount();
void UpdateStateFrequency();
bool RemoveState(int frame);
int GetStateIndexByFrame(int frame);
int GetStateFrameByIndex(int index);
}
}

View File

@ -58,6 +58,7 @@ namespace BizHawk.Client.Common
.Clamp(_minFrequency, _maxFrequency);
_decay.UpdateSettings(MaxStates, _stateFrequency, 4);
LimitStateCount();
}
/// <summary>
@ -246,11 +247,9 @@ namespace BizHawk.Client.Common
return true;
}
/// <summary>
/// Deletes states to follow the state storage size limits.
/// Used after changing the settings too.
/// </summary>
public void LimitStateCount()
// Deletes states to follow the state storage size limits.
// Used after changing the settings too.
private void LimitStateCount()
{
if (Count + 1 > MaxStates)
{

View File

@ -1080,7 +1080,6 @@ namespace BizHawk.Client.EmuHawk
Statable = this.StatableEmulator
}.ShowDialog();
CurrentTasMovie.TasStateManager.UpdateStateFrequency();
CurrentTasMovie.TasStateManager.LimitStateCount();
UpdateChangesIndicator();
}