Skip to content

Commit fd5573c

Browse files
committed
Remove redundant cast to short for MainForm.PreFutureFrameCallback
fixes 6223c9d
1 parent ac81d93 commit fd5573c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/BizHawk.Client.Common/EventTypes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public StateSavedEventArgs(string stateName)
126126
/// <summary>
127127
/// Represent a method that will control future emulation.
128128
/// </summary>
129-
/// <param name="futureFramesEmulated">The number of frames into the future that have been emulated. This is a short purely to help avoid accidentally passing in absurdly large numbers.</param>
129+
/// <param name="futureFramesEmulated">The number of frames into the future that have been emulated.</param>
130130
/// <returns>True to display the current frame, false to continue emulating into the future.</returns>
131-
public delegate bool ShowFutureCallback(short futureFramesEmulated);
131+
public delegate bool ShowFutureCallback(int futureFramesEmulated);
132132
}

src/BizHawk.Client.EmuHawk/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3081,7 +3081,7 @@ private void StepRunLoop_Core(bool force = false)
30813081
statable.SaveStateBinary(new(state));
30823082

30833083
int frameCount = 0;
3084-
while (!PreFutureFrameCallback((short)frameCount) && frameCount < MaxFutureFrames)
3084+
while (!PreFutureFrameCallback(frameCount) && frameCount < MaxFutureFrames)
30853085
{
30863086
frameCount++;
30873087
MovieSession.HandleFrameBefore();

0 commit comments

Comments
 (0)