Skip to content

Commit 27974dc

Browse files
committed
Fix typo and style violations.
1 parent 6437490 commit 27974dc

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

src/BizHawk.Client.Common/movie/interfaces/ITasMovie.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public interface ITasMovie : IMovie, INotifyPropertyChanged, IDisposable
5252

5353
void RemoveFrame(int frame);
5454
void RemoveFrames(ICollection<int> frames);
55+
5556
/// <summary>
5657
/// Remove all frames between removeStart and removeUpTo (excluding removeUpTo).
5758
/// </summary>
@@ -69,7 +70,7 @@ public interface ITasMovie : IMovie, INotifyPropertyChanged, IDisposable
6970
/// <summary>
7071
/// Sometimes we will be doing a whole bunch of small operations together. (e.g. large painting undo, large Lua edit)
7172
/// This avoids using the greenzone invalidated callback for each one, making things run smoother.
72-
/// Note that is is different from undo batching.
73+
/// Note that this is different from undo batching.
7374
/// For one, we don't undo batch an undo itself.
7475
/// For two, undo batches might span a significant amount of time during which users want to atually see edits or auto-restore in TAStudio.
7576
/// </summary>

src/BizHawk.Client.Common/movie/tasproj/TasMovie.History.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ public interface IMovieChangeLog
88
{
99
List<string> Names { get; }
1010
int UndoIndex { get; }
11+
1112
/// <summary>
1213
/// Gets or sets a value indicating whether the movie is recording action history.
1314
/// This is not intended to turn off the ChangeLog, but to disable the normal recording process.
1415
/// Use this to manually control the ChangeLog. (Useful for disabling the ChangeLog during undo/redo).
1516
/// </summary>
1617
bool IsRecording { get; set; }
1718
void Clear(int upTo = -1);
19+
1820
/// <summary>
1921
/// All changes made between calling Begin and End will be one Undo.
2022
/// If already recording in a batch, calls EndBatch.
@@ -23,6 +25,7 @@ public interface IMovieChangeLog
2325
/// <param name="keepOldBatch">If set and a batch is in progress, a new batch will not be created.</param>
2426
/// <returns>Returns true if a new batch was started; otherwise false.</returns>
2527
bool BeginNewBatch(string name = "", bool keepOldBatch = false);
28+
2629
/// <summary>
2730
/// Ends the current undo batch. Future changes will be one undo each.
2831
/// If not already recording a batch, does nothing.
@@ -38,6 +41,7 @@ public interface IMovieChangeLog
3841
/// Undoes the most recent action batch, if any exist.
3942
/// </summary>
4043
void Undo();
44+
4145
/// <summary>
4246
/// Redoes the most recent undo, if any exist.
4347
/// </summary>

src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ private void CutMenuItem_Click(object sender, EventArgs e)
483483
private void ClearFramesMenuItem_Click(object sender, EventArgs e)
484484
{
485485
if (!TasView.Focused || !TasView.AnyRowsSelected) return;
486-
486+
487487
CurrentTasMovie.SingleInvalidation(() =>
488488
{
489489
CurrentTasMovie.ChangeLog.BeginNewBatch($"Clear frames {TasView.SelectionStartIndex}-{TasView.SelectionEndIndex}");

src/BizHawk.Tests/Emulation.Common/Base Implementations/FakeEmulator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal class FakeEmulator : IEmulator, IStatable, IInputPollable
1111
private BasicServiceProvider _serviceProvider;
1212
public IEmulatorServiceProvider ServiceProvider => _serviceProvider;
1313

14-
private readonly static ControllerDefinition _cd = new ControllerDefinition("fake controller")
14+
private static readonly ControllerDefinition _cd = new ControllerDefinition("fake controller")
1515
{
1616
BoolButtons = { "A", "B" },
1717
}

0 commit comments

Comments
 (0)