Remove the obsolete MemoryDomain.FromByteArray() method
This commit is contained in:
parent
1cb6289e13
commit
a20e01ab69
|
@ -164,7 +164,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
_rom = GetRomBytes();
|
_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)
|
if (_domain.Name == _romDomain.Name)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
using System;
|
namespace BizHawk.Emulation.Common
|
||||||
|
|
||||||
namespace BizHawk.Emulation.Common
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A memory region and the functionality to read/write from it
|
/// 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);
|
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()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return Name;
|
return Name;
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
|
|
||||||
public MemoryDomain GetExRAM()
|
public MemoryDomain GetExRAM()
|
||||||
{
|
{
|
||||||
return MemoryDomain.FromByteArray("ExRAM", MemoryDomain.Endian.Little, EXRAM);
|
return new MemoryDomainByteArray("ExRAM", MemoryDomain.Endian.Little, EXRAM, true, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue