Rewrite OSDManager.InputStrOrAll without local var
This commit is contained in:
parent
b4738411a2
commit
fd0d5a38c7
|
@ -205,16 +205,9 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
public string InputStrOrAll()
|
public string InputStrOrAll()
|
||||||
{
|
=> MakeStringFor(_movieSession.Movie.IsPlayingOrRecording() && _emulator.Frame > 0
|
||||||
IController m = _inputManager.AutofireStickyXorAdapter;
|
? _inputManager.AutofireStickyXorAdapter.Or(_movieSession.Movie.GetInputState(_emulator.Frame - 1))
|
||||||
|
: _inputManager.AutofireStickyXorAdapter);
|
||||||
if (_movieSession.Movie.IsPlayingOrRecording() && _emulator.Frame > 0)
|
|
||||||
{
|
|
||||||
m = m.Or(_movieSession.Movie.GetInputState(_emulator.Frame - 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
return MakeStringFor(m);
|
|
||||||
}
|
|
||||||
|
|
||||||
private string MakeStringFor(IController controller)
|
private string MakeStringFor(IController controller)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue