New Ram Watch - fix some null reference exceptions
This commit is contained in:
parent
2e292ca2ee
commit
578efed6bf
|
@ -659,6 +659,12 @@
|
|||
<Compile Include="tools\VirtualPads\VirtualPadSNESControl.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\Watch\NewRamPoke.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\Watch\NewRamPoke.Designer.cs">
|
||||
<DependentUpon>NewRamPoke.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="tools\Watch\NewRamWatch.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -873,6 +879,9 @@
|
|||
<EmbeddedResource Include="tools\VirtualPads\VirtualPadSaturnControl.resx">
|
||||
<DependentUpon>VirtualPadSaturnControl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\Watch\NewRamPoke.resx">
|
||||
<DependentUpon>NewRamPoke.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\Watch\NewRamWatch.resx">
|
||||
<DependentUpon>NewRamWatch.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
private int defaultWidth;
|
||||
private int defaultHeight;
|
||||
private WatchList Watches = new WatchList();
|
||||
private WatchList Watches = new WatchList(Global.Emulator.MainMemory);
|
||||
private string systemID = "NULL";
|
||||
private string _sortedColumn = "";
|
||||
private bool _sortReverse = false;
|
||||
|
|
|
@ -705,7 +705,10 @@ namespace BizHawk.MultiClient
|
|||
private List<Watch> _watchList = new List<Watch>();
|
||||
private MemoryDomain _domain = null;
|
||||
|
||||
public WatchList() { }
|
||||
public WatchList(MemoryDomain domain)
|
||||
{
|
||||
_domain = domain;
|
||||
}
|
||||
|
||||
public IEnumerator<Watch> GetEnumerator()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue