mirror of
				https://github.com/derrod/legendary.git
				synced 2025-11-04 10:24:49 +00:00 
			
		
		
		
	[core] Fix incompatible DLCs being returned
This commit is contained in:
		
							parent
							
								
									c053860f25
								
							
						
					
					
						commit
						ecb405172b
					
				| 
						 | 
					@ -469,7 +469,7 @@ class LegendaryCore:
 | 
				
			||||||
                fetch_game_meta((app_name, _ga.namespace, _ga.catalog_item_id))
 | 
					                fetch_game_meta((app_name, _ga.namespace, _ga.catalog_item_id))
 | 
				
			||||||
                game = games[app_name]
 | 
					                game = games[app_name]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if game.is_dlc:
 | 
					            if game.is_dlc and platform in app_assets:
 | 
				
			||||||
                _dlc[game.metadata['mainGameItem']['id']].append(game)
 | 
					                _dlc[game.metadata['mainGameItem']['id']].append(game)
 | 
				
			||||||
            elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])) and platform in app_assets:
 | 
					            elif not any(i['path'] == 'mods' for i in game.metadata.get('categories', [])) and platform in app_assets:
 | 
				
			||||||
                _ret.append(game)
 | 
					                _ret.append(game)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue