mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Fix child classes equatiblity
This commit is contained in:
@@ -73,13 +73,13 @@
|
|||||||
|
|
||||||
public override bool Equals(DatItem other)
|
public override bool Equals(DatItem other)
|
||||||
{
|
{
|
||||||
// If we don't have a rom, return false
|
// If we don't have an archive, return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, treat it as a rom
|
// Otherwise, treat it as an archive
|
||||||
Archive newOther = (Archive)other;
|
Archive newOther = (Archive)other;
|
||||||
|
|
||||||
// If the archive information matches
|
// If the archive information matches
|
||||||
|
|||||||
@@ -103,13 +103,13 @@
|
|||||||
|
|
||||||
public override bool Equals(DatItem other)
|
public override bool Equals(DatItem other)
|
||||||
{
|
{
|
||||||
// If we don't have a rom, return false
|
// If we don't have a biosset, return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, treat it as a rom
|
// Otherwise, treat it as a biosset
|
||||||
BiosSet newOther = (BiosSet)other;
|
BiosSet newOther = (BiosSet)other;
|
||||||
|
|
||||||
// If the archive information matches
|
// If the archive information matches
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ namespace SabreTools.Helper
|
|||||||
bool dupefound = false;
|
bool dupefound = false;
|
||||||
|
|
||||||
// If we don't have a rom, return false
|
// If we don't have a rom, return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return dupefound;
|
return dupefound;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,13 +127,13 @@
|
|||||||
|
|
||||||
public override bool Equals(DatItem other)
|
public override bool Equals(DatItem other)
|
||||||
{
|
{
|
||||||
// If we don't have a rom, return false
|
// If we don't have a release return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, treat it as a rom
|
// Otherwise, treat it as a reease
|
||||||
Release newOther = (Release)other;
|
Release newOther = (Release)other;
|
||||||
|
|
||||||
// If the archive information matches
|
// If the archive information matches
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ namespace SabreTools.Helper
|
|||||||
bool dupefound = false;
|
bool dupefound = false;
|
||||||
|
|
||||||
// If we don't have a rom, return false
|
// If we don't have a rom, return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return dupefound;
|
return dupefound;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,13 +73,13 @@
|
|||||||
|
|
||||||
public override bool Equals(DatItem other)
|
public override bool Equals(DatItem other)
|
||||||
{
|
{
|
||||||
// If we don't have a rom, return false
|
// If we don't have a sample, return false
|
||||||
if (_itemType == other.Type)
|
if (_itemType != other.Type)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, treat it as a rom
|
// Otherwise, treat it as a sample
|
||||||
Sample newOther = (Sample)other;
|
Sample newOther = (Sample)other;
|
||||||
|
|
||||||
// If the archive information matches
|
// If the archive information matches
|
||||||
|
|||||||
Reference in New Issue
Block a user