add IMemoryDomains.Has
This commit is contained in:
parent
e7d62296e8
commit
0ff0749191
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -18,5 +18,7 @@ namespace BizHawk.Emulation.Common
|
|||
bool HasSystemBus { get; }
|
||||
|
||||
MemoryDomain SystemBus { get; set; }
|
||||
|
||||
bool Has(string name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue