[DatHeader] Make a leaner DatHeader

This commit is contained in:
Matt Nadareski
2017-06-16 17:04:45 -07:00
parent b59bcd7c20
commit fe574541c7

View File

@@ -6,211 +6,43 @@ namespace SabreTools.Library.Dats
{ {
public struct DatHeader public struct DatHeader
{ {
#region Private instance variables
// Data common to most DAT types
private string _fileName;
private string _name;
private string _description;
private string _rootDir;
private string _category;
private string _version;
private string _date;
private string _author;
private string _email;
private string _homepage;
private string _url;
private string _comment;
private string _header;
private string _type; // Generally only used for SuperDAT
private ForceMerging _forceMerging;
private ForceNodump _forceNodump;
private ForcePacking _forcePacking;
private DatFormat _datFormat;
private bool _excludeOf;
private bool _mergeRoms;
private Hash _stripHash;
private bool _oneGameOneRegion;
private List<string> _regions;
// Data specific to the Miss DAT type
private bool _useGame;
private string _prefix;
private string _postfix;
private bool _quotes;
private string _repExt;
private string _addExt;
private bool _remExt;
private bool _gameName;
private bool _romba;
#endregion
#region Publicly facing variables #region Publicly facing variables
// Data common to most DAT types // Data common to most DAT types
public string FileName public string FileName;
{ public string Name;
get { return _fileName; } public string Description;
set { _fileName = value; } public string RootDir;
} public string Category;
public string Name public string Version;
{ public string Date;
get { return _name; } public string Author;
set { _name = value; } public string Email;
} public string Homepage;
public string Description public string Url;
{ public string Comment;
get { return _description; } public string Header;
set { _description = value; } public string Type; // Generally only used for SuperDAT
} public ForceMerging ForceMerging;
public string RootDir public ForceNodump ForceNodump;
{ public ForcePacking ForcePacking;
get { return _rootDir; } public DatFormat DatFormat;
set { _rootDir = value; } public bool ExcludeOf;
} public bool MergeRoms;
public string Category public Hash StripHash;
{ public bool OneGameOneRegion;
get { return _category; } public List<string> Regions;
set { _category = value; }
}
public string Version
{
get { return _version; }
set { _version = value; }
}
public string Date
{
get { return _date; }
set { _date = value; }
}
public string Author
{
get { return _author; }
set { _author = value; }
}
public string Email
{
get { return _email; }
set { _email = value; }
}
public string Homepage
{
get { return _homepage; }
set { _homepage = value; }
}
public string Url
{
get { return _url; }
set { _url = value; }
}
public string Comment
{
get { return _comment; }
set { _comment = value; }
}
public string Header
{
get { return _header; }
set { _header = value; }
}
public string Type // Generally only used for SuperDAT
{
get { return _type; }
set { _type = value; }
}
public ForceMerging ForceMerging
{
get { return _forceMerging; }
set { _forceMerging = value; }
}
public ForceNodump ForceNodump
{
get { return _forceNodump; }
set { _forceNodump = value; }
}
public ForcePacking ForcePacking
{
get { return _forcePacking; }
set { _forcePacking = value; }
}
public DatFormat DatFormat
{
get { return _datFormat; }
set { _datFormat = value; }
}
public bool ExcludeOf
{
get { return _excludeOf; }
set { _excludeOf = value; }
}
public bool MergeRoms
{
get { return _mergeRoms; }
set { _mergeRoms = value; }
}
public Hash StripHash
{
get { return _stripHash; }
set { _stripHash = value; }
}
public bool OneGameOneRegion
{
get { return _oneGameOneRegion; }
set { _oneGameOneRegion = value; }
}
public List<string> Regions
{
get { return _regions; }
set { _regions = value; }
}
// Data specific to the Miss DAT type // Data specific to the Miss DAT type
public bool UseGame public bool UseGame;
{ public string Prefix;
get { return _useGame; } public string Postfix;
set { _useGame = value; } public bool Quotes;
} public string RepExt;
public string Prefix public string AddExt;
{ public bool RemExt;
get { return _prefix; } public bool GameName;
set { _prefix = value; } public bool Romba;
}
public string Postfix
{
get { return _postfix; }
set { _postfix = value; }
}
public bool Quotes
{
get { return _quotes; }
set { _quotes = value; }
}
public string RepExt
{
get { return _repExt; }
set { _repExt = value; }
}
public string AddExt
{
get { return _addExt; }
set { _addExt = value; }
}
public bool RemExt
{
get { return _remExt; }
set { _remExt = value; }
}
public bool GameName
{
get { return _gameName; }
set { _gameName = value; }
}
public bool Romba
{
get { return _romba; }
set { _romba = value; }
}
#endregion #endregion
} }