diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/UNIF/UNIF_UNL-KS7012.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/UNIF/UNIF_UNL-KS7012.cs index 6e2dac3f15..83278d6cab 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/UNIF/UNIF_UNL-KS7012.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/UNIF/UNIF_UNL-KS7012.cs @@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES public class UNIF_UNL_KS7012 : NES.NESBoardBase { private int reg; - private byte[] wram = new byte[8192]; + public override bool Configure(NES.EDetectionOrigin origin) { switch (Cart.board_type) @@ -16,6 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES return false; } + WRAM = new byte[8192]; reg = 0xFF; SetMirrorType(Cart.pad_h, Cart.pad_v); @@ -40,18 +41,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES } } - public override byte ReadWRAM(int addr) - { - return wram[addr]; - //int offset = ROM.Length - 0x2000; - //return ROM[offset + addr]; - } - - public override void WriteWRAM(int addr, byte value) - { - wram[addr] = value; - } - public override byte ReadPRG(int addr) { return ROM[((reg & 1) << 15) + addr];