add better tracking for slow disc loads

This commit is contained in:
zeromus 2015-07-11 13:01:22 -05:00
parent 7d9ea610e9
commit 4fffa64f9a
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,11 @@ namespace BizHawk.Emulation.DiscSystem
/// </summary>
public Disc OUT_Disc;
/// <summary>
/// Whether a mount operation was aborted due to being too slow
/// </summary>
public bool OUT_SlowLoadAborted;
public void Run()
{
switch (IN_DiscInterface)
@ -127,6 +132,7 @@ namespace BizHawk.Emulation.DiscSystem
if (compileJob.OUT_LoadTime >= IN_SlowLoadAbortThreshold)
{
Warn("Loading terminated due to slow load threshold");
OUT_SlowLoadAborted = true;
goto DONE;
}