refactor: moved development status to the rom object
This commit is contained in:
@@ -330,12 +330,6 @@ namespace gaseous_identifier.classes
|
||||
{
|
||||
gameObject.Copyright = new KeyValuePair<string, string>(token, TOSECCopyright[token]);
|
||||
}
|
||||
|
||||
// check for copyright
|
||||
if (TOSECDevelopment.ContainsKey(token))
|
||||
{
|
||||
gameObject.DevelopmentStatus = new KeyValuePair<string, string>(token, TOSECDevelopment[token]);
|
||||
}
|
||||
}
|
||||
}
|
||||
StartToken += 1;
|
||||
@@ -368,6 +362,12 @@ namespace gaseous_identifier.classes
|
||||
// replace the extra closing bracket
|
||||
string token = tokenSplit[0].Replace(")", "").Trim();
|
||||
|
||||
// check for copyright
|
||||
if (TOSECDevelopment.ContainsKey(token))
|
||||
{
|
||||
romObject.DevelopmentStatus = new KeyValuePair<string, string>(token, TOSECDevelopment[token]);
|
||||
}
|
||||
|
||||
// check for media type
|
||||
if (token.StartsWith("Disc") ||
|
||||
token.StartsWith("Disk") ||
|
||||
@@ -412,7 +412,7 @@ namespace gaseous_identifier.classes
|
||||
token != gameObject.Country.Key &&
|
||||
token != gameObject.Copyright.Key &&
|
||||
token != gameObject.Language.Key &&
|
||||
token != gameObject.DevelopmentStatus.Key
|
||||
token != romObject.DevelopmentStatus.Key
|
||||
)
|
||||
)
|
||||
{
|
||||
|
@@ -37,7 +37,6 @@ namespace gaseous_identifier.objects
|
||||
public KeyValuePair<string, string> Country { get; set; }
|
||||
public KeyValuePair<string, string> Language { get; set; }
|
||||
public KeyValuePair<string, string> Copyright { get; set; }
|
||||
public KeyValuePair<string, string> DevelopmentStatus { get; set; }
|
||||
public List<Rom> Roms { get; set; } = new List<Rom>();
|
||||
|
||||
public enum DemoTypes
|
||||
@@ -58,6 +57,8 @@ namespace gaseous_identifier.objects
|
||||
public string? Md5 { get; set; }
|
||||
public string? Sha1 { get; set; }
|
||||
|
||||
public KeyValuePair<string, string> DevelopmentStatus { get; set; }
|
||||
|
||||
public List<string> flags { get; set; } = new List<string>();
|
||||
|
||||
public RomTypes RomType { get; set; }
|
||||
|
Reference in New Issue
Block a user