fix some object churning when input display is on
This commit is contained in:
parent
03a7ea8438
commit
cc15bb2841
|
@ -212,11 +212,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public string InputStrOrAll()
|
public string InputStrOrAll()
|
||||||
{
|
{
|
||||||
var m = Global.MovieSession.Movie.IsPlayingOrRecording() && Global.Emulator.Frame > 0
|
IController m = Global.InputManager.AutofireStickyXorAdapter;
|
||||||
? Global.MovieSession.Movie.GetInputState(Global.Emulator.Frame - 1)
|
|
||||||
: Global.MovieSession.MovieControllerInstance();
|
|
||||||
|
|
||||||
return MakeStringFor(Global.InputManager.AutofireStickyXorAdapter.Or(m));
|
if (Global.MovieSession.Movie.IsPlayingOrRecording() && Global.Emulator.Frame > 0)
|
||||||
|
{
|
||||||
|
m = m.Or(Global.MovieSession.Movie.GetInputState(Global.Emulator.Frame - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
return MakeStringFor(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string MakeStringFor(IController controller)
|
private string MakeStringFor(IController controller)
|
||||||
|
|
Loading…
Reference in New Issue