mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Cleanup and overhaul (#21)
* Syntax cleanup * More minor cleanup, use Linq * Fix broken features by using correct values * Feature flags the same * Features are modular * No AlphaFS, more .NET versions * Fix appveyor * Put back identifiers, for some reason * String interpolation, modernization * Better use of GetField * XmlTextWriter to remove possible issues * Fix header for OpenMSX
This commit is contained in:
@@ -116,7 +116,7 @@ namespace SabreTools.Library.DatItems
|
||||
/// </summary>
|
||||
public Disk()
|
||||
{
|
||||
this.Name = "";
|
||||
this.Name = string.Empty;
|
||||
this.ItemType = ItemType.Disk;
|
||||
this.DupeType = 0x00;
|
||||
this.ItemStatus = ItemStatus.None;
|
||||
@@ -264,8 +264,8 @@ namespace SabreTools.Library.DatItems
|
||||
if (this.ItemType != other.ItemType)
|
||||
return dupefound;
|
||||
|
||||
// Otherwise, treat it as a rom
|
||||
Disk newOther = (Disk)other;
|
||||
// Otherwise, treat it as a Disk
|
||||
Disk newOther = other as Disk;
|
||||
|
||||
// If all hashes are empty but they're both nodump and the names match, then they're dupes
|
||||
if ((this.ItemStatus == ItemStatus.Nodump && newOther.ItemStatus == ItemStatus.Nodump)
|
||||
|
||||
Reference in New Issue
Block a user