add IMemoryDomains.Has

This commit is contained in:
zeromus 2015-10-26 21:41:43 -05:00
parent e7d62296e8
commit 0ff0749191
2 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,11 @@ namespace BizHawk.Emulation.Common
private MemoryDomain _mainMemory;
private MemoryDomain _systemBus;
public bool Has(string name)
{
return this.FirstOrDefault((md) => md.Name == name) != null;
}
public MemoryDomainList(IList<MemoryDomain> domains)
: base(domains)
{

View File

@ -18,5 +18,7 @@ namespace BizHawk.Emulation.Common
bool HasSystemBus { get; }
MemoryDomain SystemBus { get; set; }
bool Has(string name);
}
}