LINQ-fu
This commit is contained in:
parent
429b066955
commit
3860cf89c3
|
@ -141,8 +141,10 @@ namespace BizHawk.Client.Common
|
|||
|
||||
RecordingBatch = false;
|
||||
|
||||
if (!batch.Where(a => a.GetType() != typeof(MovieActionMarker)).Any())
|
||||
if (batch.All(a => a.GetType() == typeof(MovieActionMarker)))
|
||||
{
|
||||
return Movie.InputLogLength;
|
||||
}
|
||||
|
||||
return PreviousUndoFrame;
|
||||
}
|
||||
|
@ -163,8 +165,10 @@ namespace BizHawk.Client.Common
|
|||
|
||||
RecordingBatch = false;
|
||||
|
||||
if (!batch.Where(a => a.GetType() != typeof(MovieActionMarker)).Any())
|
||||
if (batch.All(a => a.GetType() == typeof(MovieActionMarker)))
|
||||
{
|
||||
return Movie.InputLogLength;
|
||||
}
|
||||
|
||||
return PreviousRedoFrame;
|
||||
}
|
||||
|
|
|
@ -545,7 +545,7 @@ namespace BizHawk.Client.Common
|
|||
/// <returns></returns>
|
||||
public bool IsDiplayTypeAvailable(DisplayType type)
|
||||
{
|
||||
return AvailableTypes().Where<DisplayType>(d => d == type).Any<DisplayType>();
|
||||
return AvailableTypes().Any(d => d == type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue