refactor: moved development status to the rom object

This commit is contained in:
Michael Green
2023-02-21 10:12:23 +11:00
parent 0dcd720199
commit cb44f1a509
2 changed files with 9 additions and 8 deletions

View File

@@ -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
)
)
{