A few more Stella cleanups
This commit is contained in:
parent
1b92d1080f
commit
db11df3804
|
@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
|
|||
|
||||
public ControllerDefinition ControllerDefinition => _controllerDeck.Definition;
|
||||
|
||||
private bool _leftDifficultyToggled;
|
||||
private bool _leftDifficultyToggled;
|
||||
private bool _rightDifficultyToggled;
|
||||
|
||||
public bool FrameAdvance(IController controller, bool render, bool renderSound)
|
||||
|
|
|
@ -6,12 +6,11 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
|
|||
{
|
||||
public partial class Stella
|
||||
{
|
||||
internal IMemoryDomains MemoryDomains;
|
||||
private uint _cartMemSize;
|
||||
private IMemoryDomains MemoryDomains;
|
||||
|
||||
private void SetupMemoryDomains()
|
||||
{
|
||||
_cartMemSize = Core.stella_get_cartram_size();
|
||||
var cartMemSize = Core.stella_get_cartram_size();
|
||||
var mainRamAddress = IntPtr.Zero;
|
||||
Core.stella_get_mainram_ptr(ref mainRamAddress);
|
||||
|
||||
|
@ -42,11 +41,11 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
|
|||
1)
|
||||
};
|
||||
|
||||
if (_cartMemSize > 0)
|
||||
if (cartMemSize > 0)
|
||||
{
|
||||
domains.Add(new MemoryDomainDelegate(
|
||||
"Cart Ram",
|
||||
_cartMemSize,
|
||||
cartMemSize,
|
||||
MemoryDomain.Endian.Little,
|
||||
addr => Core.stella_peek_cartram((uint)addr),
|
||||
(addr, value) => Core.stella_poke_cartram((uint)addr, value),
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
|
|||
var src = IntPtr.Zero;
|
||||
Core.stella_get_video(out var width, out var height, out _, ref src);
|
||||
|
||||
BufferWidth = width;
|
||||
BufferWidth = width;
|
||||
BufferHeight = height;
|
||||
|
||||
if (_vidBuff.Length < BufferWidth * BufferHeight)
|
||||
|
|
Loading…
Reference in New Issue