get rid of some warnings

This commit is contained in:
zeromus 2012-06-15 19:21:46 +00:00
parent 2ca3ae2615
commit 931c9c9b23
6 changed files with 9 additions and 11 deletions

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Consoles.GB
private Z80 CPU;
private int lagCount = 0;
private bool isLagFrame = false;
private IList<MemoryDomain> memoryDomains;
private IList<MemoryDomain> memoryDomains = new List<MemoryDomain>();
public GB(GameInfo game, byte[] rom, bool skipBIOS)
{

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Consoles.GB
{
public partial class GB
{
private byte[] OAM;
private byte[] VRAM;
private byte[] OAM = new byte[1];
private byte[] VRAM = new byte[1];
}
}

View File

@ -11,11 +11,11 @@ namespace BizHawk.Emulation.Consoles.GB
private bool inBIOS = true;
// Memory regions (initialised at reset time)
private byte[] BIOS;
private byte[] ROM;
private byte[] WRAM;
private byte[] ERAM;
private byte[] ZRAM;
private byte[] BIOS = new byte[1];
private byte[] ROM = new byte[1];
private byte[] WRAM = new byte[1];
private byte[] ERAM = new byte[1];
private byte[] ZRAM = new byte[1];
public byte ReadMemory(ushort addr)
{

View File

@ -8,7 +8,6 @@ namespace BizHawk.Emulation.Consoles.Gameboy
{
private bool skipBIOS = false;
private int _lagcount = 0;
private bool lagged = true;
private bool islag = false;
public interface IDebuggerAPI

View File

@ -243,7 +243,6 @@ class RiffMaster : IDisposable
public class RiffContainer_INFO : RiffContainer
{
public Dictionary<string, string> dictionary = new Dictionary<string, string>();
byte[] data;
public RiffContainer_INFO() { type = "INFO"; }
public RiffContainer_INFO(RiffContainer rc)
{

View File

@ -94,7 +94,7 @@ namespace BizHawk.DiscSystem
string physicalPath;
long length;
public long Offset;
public long Offset = 0;
BufferedStream fs;
public void Dispose()