Simplify
This commit is contained in:
parent
7f43fb09af
commit
2a8b4504cd
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -1080,7 +1080,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
Statable = this.StatableEmulator
|
||||
}.ShowDialog();
|
||||
CurrentTasMovie.TasStateManager.UpdateStateFrequency();
|
||||
CurrentTasMovie.TasStateManager.LimitStateCount();
|
||||
UpdateChangesIndicator();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue