IMemoryDomainList - downgrade from IList to IEnumerable, refactor a spot that needed something more than that
This commit is contained in:
parent
418d80b0e8
commit
9358e24213
|
@ -63,9 +63,11 @@ namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
var table = Lua.NewTable();
|
var table = Lua.NewTable();
|
||||||
|
|
||||||
for (int i = 0; i < DomainList.Count; i++)
|
int i = 0;
|
||||||
|
foreach (var domain in DomainList)
|
||||||
{
|
{
|
||||||
table[i] = DomainList[i].Name;
|
table[i] = domain.Name;
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return table;
|
return table;
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Common
|
||||||
IMemoryDomainList MemoryDomains { get; }
|
IMemoryDomainList MemoryDomains { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IMemoryDomainList : IList<MemoryDomain>
|
public interface IMemoryDomainList : IEnumerable<MemoryDomain>
|
||||||
{
|
{
|
||||||
MemoryDomain this[string name] { get; }
|
MemoryDomain this[string name] { get; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue