Skip to content

Commit

Permalink
games can have multiple names for same region but we dont know the re…
Browse files Browse the repository at this point in the history
…gion of the main game record, so dont let the alternate names take priority
  • Loading branch information
spektor56 committed Sep 22, 2020
1 parent ecb1492 commit 74fff73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LBGDBMetadata/LbgdbMetadataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private Game GetGame()

using (var context = new MetaDataContext(_plugin.GetPluginUserDataPath()))
{
/* Can't tell which region the actual game name is from in the game object...
if (_regionPriority.Count > 0)
{
var alternateNames = context.GameAlternateName.Where(game =>
Expand Down Expand Up @@ -131,7 +132,7 @@ private Game GetGame()
}
}
}

*/
if (_game is null)
{
_game = context.Games.FirstOrDefault(game =>
Expand Down

0 comments on commit 74fff73

Please sign in to comment.