From 2f4ad78e27f517d10f10b90475d2adfc429e2a1e Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 4 Oct 2021 01:28:22 +0200 Subject: [PATCH] [lfs] Prevent aliases from shadowing app names This is probably somewhat unlikely to actually happen given that app names are largely random strings and only some are actual words, but just to be sure we declare app names to be collisions. --- legendary/lfs/lgndry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legendary/lfs/lgndry.py b/legendary/lfs/lgndry.py index fa678b9..72dff48 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -361,6 +361,8 @@ class LGDLFS: alias_map = defaultdict(set) for app_name in self._game_metadata.keys(): + # Prevent app names from being used as aliases + collisions.add(app_name.lower()) game = self.get_game_meta(app_name) if game.is_dlc: continue