Skip to content

Commit

Permalink
Fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMartin86 committed Aug 11, 2024
1 parent f54375b commit 24e49dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
17 changes: 5 additions & 12 deletions src/BizHawk.Emulation.Cores/Consoles/Atari/Stella/Stella.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,19 @@ namespace BizHawk.Emulation.Cores.Atari.Stella
{
public partial class Stella
{
private readonly GameInfo _game;

internal struct CpuLink : IMOS6502XLink
{
private readonly Stella _atari2600;

public byte DummyReadMemory(ushort address) => _atari2600.ReadMemory(address);
public byte DummyReadMemory(ushort address) { return 0; }

public void OnExecFetch(ushort address) => _atari2600.ExecFetch(address);
public void OnExecFetch(ushort address) { }

public byte PeekMemory(ushort address) => _atari2600.ReadMemory(address);
public byte PeekMemory(ushort address) { return 0; }

public byte ReadMemory(ushort address) => _atari2600.ReadMemory(address);
public byte ReadMemory(ushort address) { return 0; }

public void WriteMemory(ushort address, byte value) => _atari2600.WriteMemory(address, value);
public void WriteMemory(ushort address, byte value) { }
}

// keeps track of tia cycles, 3 cycles per CPU cycle
private int cyc_counter;

internal byte BaseReadMemory(ushort addr)
{
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public partial class Stella
{
internal IMemoryDomains MemoryDomains;
private readonly Dictionary<string, MemoryDomainByteArray> _byteArrayDomains = new Dictionary<string, MemoryDomainByteArray>();
private bool _memoryDomainsInit;
private uint _cartMemSize;

private void SetupMemoryDomains()
Expand Down Expand Up @@ -62,8 +61,6 @@ private void SetupMemoryDomains()

MemoryDomains = new MemoryDomainList(_byteArrayDomains.Values.Concat(domains).ToList());
((BasicServiceProvider)ServiceProvider).Register(MemoryDomains);

_memoryDomainsInit = true;
}
}
}

0 comments on commit 24e49dc

Please sign in to comment.