@@ -33,27 +33,27 @@ public SimilarGamesControl(IPlayniteAPI playniteApi, GameRelationsSettings setti
3333
3434 public override IEnumerable < Game > GetMatchingGames ( Game game )
3535 {
36- var gtm = GetGameToMatchInfo ( game ) ;
36+ var gameToMatchInfo = GetGameToMatchInfo ( game ) ;
3737
3838 var similarityScores = new Dictionary < Game , double > ( ) ;
3939 foreach ( var otherGame in PlayniteApi . Database . Games )
4040 {
41- if ( otherGame . Id == gtm . Game . Id )
41+ if ( otherGame . Id == gameToMatchInfo . Game . Id )
4242 {
4343 continue ;
4444 }
4545
46- if ( ! gtm . Game . Hidden && otherGame . Hidden )
46+ if ( ! gameToMatchInfo . Game . Hidden && otherGame . Hidden )
4747 {
4848 continue ;
4949 }
5050
51- if ( _controlSettings . ExcludeGamesSameSeries && HashSetContainsAnyItem ( otherGame . SeriesIds , gtm . SeriesIds ) )
51+ if ( _controlSettings . ExcludeGamesSameSeries && HashSetContainsAnyItem ( otherGame . SeriesIds , gameToMatchInfo . SeriesIds ) )
5252 {
5353 continue ;
5454 }
5555
56- if ( GamesAreSimilar ( gtm , otherGame , out double similarity ) )
56+ if ( GamesAreSimilar ( gameToMatchInfo , otherGame , out double similarity ) )
5757 {
5858 similarityScores . Add ( otherGame , similarity ) ;
5959 }
@@ -67,15 +67,15 @@ public override IEnumerable<Game> GetMatchingGames(Game game)
6767
6868 private GameToMatchInfo GetGameToMatchInfo ( Game game )
6969 {
70- var gtm = new GameToMatchInfo ( game ) ;
70+ var gameToMatchInfo = new GameToMatchInfo ( game ) ;
7171 foreach ( var field in _controlSettings . FieldSettings )
7272 {
7373 if ( field . Enabled )
7474 {
75- gtm . FilteredValues [ field . Field ] = GetFilteredValue ( game , field . Field ) . ToHashSet ( ) ;
75+ gameToMatchInfo . FilteredValues [ field . Field ] = GetFilteredValue ( game , field . Field ) . ToHashSet ( ) ;
7676 }
7777 }
78- return gtm ;
78+ return gameToMatchInfo ;
7979 }
8080
8181 protected HashSet < Guid > GetItemsToIgnore ( GameField field )
0 commit comments