Display rerecord count on the frame counter message for now. I will eventually make it its own display option

This commit is contained in:
andres.delikat 2011-05-12 22:51:25 +00:00
parent 769a5d10ec
commit 890fa7fbe0
2 changed files with 12 additions and 3 deletions

View File

@ -303,12 +303,16 @@ namespace BizHawk.MultiClient
private string MakeFrameCounter() private string MakeFrameCounter()
{ {
//TODO: remove rerecord count code and make it its own display option
if (Global.MainForm.UserMovie.GetMovieMode() == MOVIEMODE.PLAY) if (Global.MainForm.UserMovie.GetMovieMode() == MOVIEMODE.PLAY)
{ {
return Global.Emulator.Frame.ToString() + " " + Global.MainForm.UserMovie.lastLog.ToString() return Global.Emulator.Frame.ToString() + " " + Global.MainForm.UserMovie.lastLog.ToString()
+ "/" + Global.MainForm.UserMovie.GetMovieLength().ToString(); + "/" + Global.MainForm.UserMovie.GetMovieLength().ToString() + " Rerecord count: " + Global.MainForm.UserMovie.GetRerecordCount();
} }
else else if (Global.MainForm.UserMovie.GetMovieMode() != MOVIEMODE.INACTIVE)
return Global.Emulator.Frame.ToString() + " " + Global.MainForm.UserMovie.lastLog.ToString()
+ "/" + Global.MainForm.UserMovie.GetMovieLength().ToString() + " Rerecord count: " + Global.MainForm.UserMovie.GetRerecordCount();
else
{ {
return Global.Emulator.Frame.ToString(); return Global.Emulator.Frame.ToString();
} }

View File

@ -314,5 +314,10 @@ namespace BizHawk.MultiClient
rerecordCount++; rerecordCount++;
Header.UpdateRerecordCount(rerecordCount); Header.UpdateRerecordCount(rerecordCount);
} }
public int GetRerecordCount()
{
return rerecordCount;
}
} }
} }