[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.
This commit is contained in:
derrod 2021-10-04 01:28:22 +02:00
parent a116013f05
commit 2f4ad78e27

View file

@ -361,6 +361,8 @@ class LGDLFS:
alias_map = defaultdict(set) alias_map = defaultdict(set)
for app_name in self._game_metadata.keys(): 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) game = self.get_game_meta(app_name)
if game.is_dlc: if game.is_dlc:
continue continue