From 0e292d19caf57951b7402e40b92f082971ec68a2 Mon Sep 17 00:00:00 2001 From: goyuken Date: Wed, 3 Oct 2012 15:11:21 +0000 Subject: [PATCH] snes: don't instantiate "BUS" domain when DeterministicEmulation == true --- BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs index a4036e65f5..bd9c270ffe 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs @@ -841,9 +841,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES MakeMemoryDomain("CGRAM", LibsnesDll.SNES_MEMORY.CGRAM, Endian.Little); MakeMemoryDomain("APURAM", LibsnesDll.SNES_MEMORY.APURAM, Endian.Little); - MemoryDomains.Add(new MemoryDomain("BUS", 0x1000000, Endian.Little, - (addr) => LibsnesDll.bus_read((uint)addr), - (addr, val) => LibsnesDll.bus_write((uint)addr, val))); + if (!DeterministicEmulation) + MemoryDomains.Add(new MemoryDomain("BUS", 0x1000000, Endian.Little, + (addr) => LibsnesDll.bus_read((uint)addr), + (addr, val) => LibsnesDll.bus_write((uint)addr, val))); } public IList MemoryDomains { get; private set; } public MemoryDomain MainMemory { get; private set; }