Remove the obsolete MemoryDomain.FromByteArray() method

This commit is contained in:
adelikat 2017-04-24 13:55:20 -05:00
parent 1cb6289e13
commit a20e01ab69
3 changed files with 3 additions and 15 deletions

View File

@ -164,7 +164,7 @@ namespace BizHawk.Client.EmuHawk
public void Restart()
{
_rom = GetRomBytes();
_romDomain = MemoryDomain.FromByteArray("File on Disk", MemoryDomain.Endian.Little, _rom);
_romDomain = new MemoryDomainByteArray("File on Disk", MemoryDomain.Endian.Little, _rom, true, 1);
if (_domain.Name == _romDomain.Name)
{

View File

@ -1,6 +1,4 @@
using System;
namespace BizHawk.Emulation.Common
namespace BizHawk.Emulation.Common
{
/// <summary>
/// A memory region and the functionality to read/write from it
@ -25,16 +23,6 @@ namespace BizHawk.Emulation.Common
public abstract void PokeByte(long addr, byte val);
/// <summary>
/// creates a memorydomain that references a managed byte array
/// </summary>
/// <param name="writable">if false, writes will be ignored</param>
[Obsolete]
public static MemoryDomain FromByteArray(string name, Endian endian, byte[] data, bool writable = true, int wordSize = 1)
{
return new MemoryDomainByteArray(name, endian, data, writable, wordSize);
}
public override string ToString()
{
return Name;

View File

@ -49,7 +49,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public MemoryDomain GetExRAM()
{
return MemoryDomain.FromByteArray("ExRAM", MemoryDomain.Endian.Little, EXRAM);
return new MemoryDomainByteArray("ExRAM", MemoryDomain.Endian.Little, EXRAM, true, 1);
}
/// <summary>