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:
@@ -38,11 +38,11 @@ namespace SabreTools.Library.DatItems
|
||||
/// </summary>
|
||||
public Release()
|
||||
{
|
||||
this.Name = "";
|
||||
this.Name = string.Empty;
|
||||
this.ItemType = ItemType.Release;
|
||||
this.Region = "";
|
||||
this.Language = "";
|
||||
this.Date = "";
|
||||
this.Region = string.Empty;
|
||||
this.Language = string.Empty;
|
||||
this.Date = string.Empty;
|
||||
this.Default = null;
|
||||
}
|
||||
|
||||
@@ -102,12 +102,10 @@ namespace SabreTools.Library.DatItems
|
||||
{
|
||||
// If we don't have a release return false
|
||||
if (this.ItemType != other.ItemType)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Otherwise, treat it as a reease
|
||||
Release newOther = (Release)other;
|
||||
// Otherwise, treat it as a Release
|
||||
Release newOther = other as Release;
|
||||
|
||||
// If the archive information matches
|
||||
return (this.Name == newOther.Name
|
||||
|
||||
Reference in New Issue
Block a user