remove outdated bk2 "scrub" hotkey, this is an obscure feature that is non-trivial to use, but a higly trivial thing to do in tastudio
This commit is contained in:
parent
bd1c3cb991
commit
2bf902b942
|
@ -191,7 +191,6 @@ namespace BizHawk.Client.Common
|
|||
Bind("Movie", "MT Select None"),
|
||||
Bind("Movie", "MT Increment Player"),
|
||||
Bind("Movie", "MT Decrement Player"),
|
||||
Bind("Movie", "Scrub Input"),
|
||||
|
||||
Bind("Tools", "RAM Watch"),
|
||||
Bind("Tools", "RAM Search"),
|
||||
|
|
|
@ -87,18 +87,6 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
HandleFrameLoopForRecordMode();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Movie may go into finished mode as a result from latching
|
||||
if (!Movie.IsFinished())
|
||||
{
|
||||
if (Global.InputManager.ClientControls.IsPressed("Scrub Input"))
|
||||
{
|
||||
LatchInputToUser();
|
||||
ClearFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (Movie.IsRecording())
|
||||
{
|
||||
|
@ -350,16 +338,6 @@ namespace BizHawk.Client.Common
|
|||
return new Bk2Movie(this, path);
|
||||
}
|
||||
|
||||
|
||||
private void ClearFrame()
|
||||
{
|
||||
if (Movie.IsPlayingOrFinished())
|
||||
{
|
||||
Movie.ClearFrame(Movie.Emulator.Frame);
|
||||
Output($"Scrubbed input at frame {Movie.Emulator.Frame}");
|
||||
}
|
||||
}
|
||||
|
||||
private void PopupMessage(string message)
|
||||
{
|
||||
_popupCallback?.Invoke(message);
|
||||
|
|
|
@ -160,13 +160,6 @@ namespace BizHawk.Client.Common
|
|||
Changes = true;
|
||||
}
|
||||
|
||||
public virtual void ClearFrame(int frame)
|
||||
{
|
||||
var lg = LogGeneratorInstance(Session.MovieController);
|
||||
SetFrameAt(frame, lg.EmptyEntry);
|
||||
Changes = true;
|
||||
}
|
||||
|
||||
protected void SetFrameAt(int frameNum, string frame)
|
||||
{
|
||||
if (Log.Count > frameNum)
|
||||
|
|
|
@ -188,11 +188,6 @@ namespace BizHawk.Client.Common
|
|||
/// </summary>
|
||||
void FinishedMode();
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the given frame's input with an empty frame
|
||||
/// </summary>
|
||||
void ClearFrame(int frame);
|
||||
|
||||
/// <summary>
|
||||
/// Adds the given input to the movie
|
||||
/// Note: this edits the input log without the normal movie recording logic applied
|
||||
|
|
|
@ -27,6 +27,11 @@ namespace BizHawk.Client.Common
|
|||
void FlagChanges();
|
||||
void ClearChanges();
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the given frame's input with an empty frame
|
||||
/// </summary>
|
||||
void ClearFrame(int frame);
|
||||
|
||||
void GreenzoneCurrentFrame();
|
||||
void ToggleBoolState(int frame, string buttonName);
|
||||
void SetAxisState(int frame, string buttonName, int val);
|
||||
|
|
|
@ -78,13 +78,15 @@ namespace BizHawk.Client.Common
|
|||
ChangeLog.SetGeneralRedo();
|
||||
}
|
||||
|
||||
public override void ClearFrame(int frame)
|
||||
public void ClearFrame(int frame)
|
||||
{
|
||||
ChangeLog.AddGeneralUndo(frame, frame, $"Clear Frame: {frame}");
|
||||
|
||||
base.ClearFrame(frame);
|
||||
InvalidateAfter(frame);
|
||||
var lg = LogGeneratorInstance(Session.MovieController);
|
||||
SetFrameAt(frame, lg.EmptyEntry);
|
||||
Changes = true;
|
||||
|
||||
InvalidateAfter(frame);
|
||||
ChangeLog.SetGeneralRedo();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue