Ram Search - make IInputPollable an optional service not a required one

This commit is contained in:
adelikat 2015-04-17 15:21:19 +00:00
parent 01ed8f2064
commit 5d5a4d10f2
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ namespace BizHawk.Client.EmuHawk
[RequiredService]
public IEmulator Emu { get; set; }
[RequiredService]
[OptionalService]
public IInputPollable InputPollableCore { get; set; }
[ConfigPersist]
@ -270,7 +270,7 @@ namespace BizHawk.Client.EmuHawk
if (_autoSearch)
{
if (Settings.AutoSearchTakeLagFramesIntoAccount && InputPollableCore.IsLagFrame)
if (InputPollableCore != null && Settings.AutoSearchTakeLagFramesIntoAccount && InputPollableCore.IsLagFrame)
{
// Do nothing
}