More concise FrameRate definition; comment tweaks (#2210)

This commit is contained in:
RetroEdit 2020-07-07 16:36:42 +00:00 committed by GitHub
parent ca646f87cf
commit 9a45d88301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View File

@ -102,14 +102,7 @@ namespace BizHawk.Client.Common
} }
} }
public double FrameRate public double FrameRate => PlatformFrameRates.GetFrameRate(SystemID, IsPal);
{
get
{
var system = HeaderEntries[HeaderKeys.Platform];
return PlatformFrameRates.GetFrameRate(system, IsPal);
}
}
public IStringLog GetLogEntries() => Log; public IStringLog GetLogEntries() => Log;

View File

@ -49,7 +49,7 @@ namespace BizHawk.Client.Common
int FrameCount { get; } int FrameCount { get; }
/// <summary> /// <summary>
/// Gets the actual length of the input log, should only be used by code that needs a the input log length /// Gets the actual length of the input log, should only be used by code that needs the input log length
/// specifically, not the frame count /// specifically, not the frame count
/// </summary> /// </summary>
int InputLogLength { get; } int InputLogLength { get; }
@ -99,7 +99,7 @@ namespace BizHawk.Client.Common
string BoardName { get; set; } string BoardName { get; set; }
/// <summary> /// <summary>
/// Loads from the HawkFile the minimal amount of information needed to determine Header info and Movie length /// Loads from the HawkFile the minimal amount of information needed to determine Header info and Movie length.
/// This method is intended to be more performant than a full load /// This method is intended to be more performant than a full load
/// </summary> /// </summary>
bool PreLoadHeaderAndLength(); bool PreLoadHeaderAndLength();