fix tastudio crashes when:
- setting 0 space for disk states - righclicking on selection if a bunch of selected frames contains the last frame - cutting the last frame
This commit is contained in:
parent
48f92aa3ca
commit
edf21b8bfe
|
@ -125,7 +125,8 @@ namespace BizHawk.Client.Common
|
|||
|
||||
foreach (var frame in frames.OrderByDescending(x => x)) // Removin them in reverse order allows us to remove by index;
|
||||
{
|
||||
_log.RemoveAt(frame);
|
||||
if (frame < _log.Count)
|
||||
_log.RemoveAt(frame);
|
||||
if (BindMarkersToInput) // TODO: This is slow, is there a better way to do it?
|
||||
{
|
||||
bool wasRecording = ChangeLog.IsRecording;
|
||||
|
|
|
@ -172,6 +172,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
65536,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.DiskCapacityNumeric.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.DiskCapacityNumeric.Name = "DiskCapacityNumeric";
|
||||
this.DiskCapacityNumeric.Size = new System.Drawing.Size(55, 20);
|
||||
|
|
|
@ -564,7 +564,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
_rightClickInput = new string[TasView.SelectedRows.Count()];
|
||||
_rightClickFrame = TasView.FirstSelectedIndex.Value;
|
||||
CurrentTasMovie.GetLogEntries().CopyTo(_rightClickFrame, _rightClickInput, 0, TasView.SelectedRows.Count());
|
||||
try
|
||||
{
|
||||
CurrentTasMovie.GetLogEntries().CopyTo(_rightClickFrame, _rightClickInput, 0, TasView.SelectedRows.Count());
|
||||
}
|
||||
catch { }
|
||||
if (_rightClickControl && _rightClickShift)
|
||||
_rightClickFrame += _rightClickInput.Length;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue