-Branches now have their own undo history
This commit is contained in:
parent
6f105f6ee8
commit
52544efec9
|
@ -14,6 +14,7 @@ namespace BizHawk.Client.Common
|
|||
public List<string> InputLog { get; set; }
|
||||
public BitmapBuffer OSDFrameBuffer { get; set; }
|
||||
public TasLagLog LagLog { get; set; }
|
||||
public TasMovieChangeLog ChangeLog { get; set; }
|
||||
}
|
||||
|
||||
public class TasBranchCollection : List<TasBranch>
|
||||
|
|
|
@ -465,6 +465,7 @@ namespace BizHawk.Client.Common
|
|||
StateManager.SetState(branch.Frame, branch.CoreData);
|
||||
//LagLog.Clear(); LagLog and InputLog is the same reference as what's in the branch!
|
||||
LagLog.FromLagLog(branch.LagLog);
|
||||
ChangeLog = branch.ChangeLog;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,7 +86,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
InputLog = Tastudio.CurrentTasMovie.InputLog.ToList(),
|
||||
OSDFrameBuffer = GlobalWin.MainForm.CaptureOSD(),
|
||||
//OSDFrameBuffer = (int[])(Global.Emulator.VideoProvider().GetVideoBuffer().Clone()),
|
||||
LagLog = Tastudio.CurrentTasMovie.TasLagLog.Clone()
|
||||
LagLog = Tastudio.CurrentTasMovie.TasLagLog.Clone(),
|
||||
ChangeLog = new TasMovieChangeLog(Tastudio.CurrentTasMovie)
|
||||
};
|
||||
|
||||
Branches.Add(branch);
|
||||
|
@ -169,9 +170,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private double Fps()
|
||||
{
|
||||
var movie = Tastudio.CurrentTasMovie;
|
||||
var system = movie.HeaderEntries[HeaderKeys.PLATFORM];
|
||||
var pal = movie.HeaderEntries.ContainsKey(HeaderKeys.PAL) &&
|
||||
TasMovie movie = Tastudio.CurrentTasMovie;
|
||||
string system = movie.HeaderEntries[HeaderKeys.PLATFORM];
|
||||
bool pal = movie.HeaderEntries.ContainsKey(HeaderKeys.PAL) &&
|
||||
movie.HeaderEntries[HeaderKeys.PAL] == "1";
|
||||
|
||||
return FrameRates[system, pal];
|
||||
|
|
Loading…
Reference in New Issue