issue #149 fixed - better notion of equals when comparing watch object
This commit is contained in:
parent
e4c7110174
commit
dd651b2ca8
|
@ -261,7 +261,12 @@ namespace BizHawk.Client.Common
|
||||||
if (obj is Watch)
|
if (obj is Watch)
|
||||||
{
|
{
|
||||||
var watch = obj as Watch;
|
var watch = obj as Watch;
|
||||||
return this.Domain == watch.Domain && this.Address == watch.Address;
|
|
||||||
|
return this.Domain == watch.Domain &&
|
||||||
|
this.Address == watch.Address &&
|
||||||
|
this.Size == watch.Size &&
|
||||||
|
this.Type == watch.Type &&
|
||||||
|
this.Notes == watch.Notes;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj is Cheat)
|
if (obj is Cheat)
|
||||||
|
@ -286,7 +291,7 @@ namespace BizHawk.Client.Common
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return a.Domain == b.Domain && a.Address == b.Address;
|
return a.Equals(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool operator !=(Watch a, Watch b)
|
public static bool operator !=(Watch a, Watch b)
|
||||||
|
|
Loading…
Reference in New Issue