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()
|
||||
{
|
||||
IController m = _inputManager.AutofireStickyXorAdapter;
|
||||
|
||||
if (_movieSession.Movie.IsPlayingOrRecording() && _emulator.Frame > 0)
|
||||
{
|
||||
m = m.Or(_movieSession.Movie.GetInputState(_emulator.Frame - 1));
|
||||
}
|
||||
|
||||
return MakeStringFor(m);
|
||||
}
|
||||
=> MakeStringFor(_movieSession.Movie.IsPlayingOrRecording() && _emulator.Frame > 0
|
||||
? _inputManager.AutofireStickyXorAdapter.Or(_movieSession.Movie.GetInputState(_emulator.Frame - 1))
|
||||
: _inputManager.AutofireStickyXorAdapter);
|
||||
|
||||
private string MakeStringFor(IController controller)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue