mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[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:
parent
a116013f05
commit
2f4ad78e27
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue