remove the dummymemorydomainlist as its not needed anymore (if a core has no memory domains, it simply doesn't have the interface)

This commit is contained in:
goyuken 2014-09-01 21:09:25 +00:00
parent 3dc88b817a
commit 8634d52bed
4 changed files with 2 additions and 15 deletions

View File

@ -23,7 +23,7 @@ namespace BizHawk.Client.EmuHawk
MobileBmpView bg0, bg1, bg2, bg3, bgpal, sppal, sprites, bgtiles16, bgtiles256, sptiles16, sptiles256;
MobileDetailView memory;
// MobileDetailView memory;
public bool AskSaveChanges() { return true; }
public bool UpdateBefore { get { return true; } }

View File

@ -5,7 +5,7 @@
///The list of all avaialble memory domains
/// A memory domain is a byte array that respresents a distinct part of the emulated system.
/// By convention the Main Memory is the 1st domain in the list
// All cores sould implement a System Bus domain that represents the standard "Open bus" range for that system,
// All cores sould implement a System Bus domain that represents the standard cpu bus range for that system,
/// and a Main Memory which is typically the WRAM space (for instance, on NES - 0000-07FF),
/// Other chips, and ram spaces can be added as well.
/// Subdomains of another domain are also welcome.

View File

@ -142,18 +142,6 @@ namespace BizHawk.Emulation.Common
public class MemoryDomainList : ReadOnlyCollection<MemoryDomain>
{
/// <summary>
/// creates a minimal valid MemoryDomainList that does nothing
/// </summary>
/// <returns></returns>
public static MemoryDomainList GetDummyList()
{
MemoryDomain dummy = new MemoryDomain("Dummy", 256, MemoryDomain.Endian.Little, (a) => 0, (a, v) => { });
List<MemoryDomain> tmp = new List<MemoryDomain>(1);
tmp.Add(dummy);
return new MemoryDomainList(tmp, 0);
}
private readonly int _mainMemoryIndex;
public MemoryDomainList(IList<MemoryDomain> domains)

View File

@ -371,7 +371,6 @@ namespace BizHawk.Emulation.Cores
void SetupDebuggingStuff()
{
MemoryDomains = MemoryDomainList.GetDummyList();
}
public MemoryDomainList MemoryDomains { get; private set; }