[core] Fix metadata prune removing required data

This commit is contained in:
derrod 2021-12-02 16:53:09 +01:00
parent 6f7989ab50
commit 9511d9d65b

View file

@ -423,7 +423,7 @@ class LegendaryCore:
def _prune_metadata(self): def _prune_metadata(self):
# compile list of games without assets, then delete their metadata # compile list of games without assets, then delete their metadata
available_assets = set() available_assets = set()
for platform in self.get_installed_platforms(): for platform in self.get_installed_platforms() | {'Windows'}:
available_assets |= {i.app_name for i in self.get_assets(platform=platform)} available_assets |= {i.app_name for i in self.get_assets(platform=platform)}
for app_name in self.lgd.get_game_app_names(): for app_name in self.lgd.get_game_app_names():