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
|
||||
)
|
||||
)
|
||||
{
|
||||
|
Reference in New Issue
Block a user