Removed allow_side_effects

This commit is contained in:
GeoffreyCoulaud
2023-07-01 03:01:15 +02:00
parent 8d082ab158
commit a7efe0a920
10 changed files with 10 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ class BottlesSourceIterator(SourceIterator):
bottle_name=entry["bottle"]["name"], game_name=entry["name"]
),
}
game = Game(values, allow_side_effects=False)
game = Game(values)
# Get official cover path
try:

View File

@@ -100,7 +100,7 @@ class FlatpakSourceIterator(SourceIterator):
flatpak_id=flatpak_id
),
}
game = Game(values, allow_side_effects=False)
game = Game(values)
additional_data = {}
if icon_name := desktop_values["Icon"]:

View File

@@ -90,7 +90,7 @@ class HeroicSourceIterator(SourceIterator):
),
"executable": self.source.executable_format.format(app_name=app_name),
}
game = Game(values, allow_side_effects=False)
game = Game(values)
# Get the image path from the heroic cache
# Filenames are derived from the URL that heroic used to get the file

View File

@@ -71,7 +71,7 @@ class ItchSourceIterator(SourceIterator):
"executable": self.source.executable_format.format(cave_id=row[4]),
}
additional_data = {"online_cover_url": row[3] or row[2]}
game = Game(values, allow_side_effects=False)
game = Game(values)
yield (game, additional_data)
# Cleanup

View File

@@ -62,7 +62,7 @@ class LegendarySourceIterator(SourceIterator):
except (JSONDecodeError, OSError, KeyError):
pass
game = Game(values, allow_side_effects=False)
game = Game(values)
return (game, data)
def generator_builder(self) -> Generator[SourceIterationResult, None, None]:

View File

@@ -74,7 +74,7 @@ class LutrisSourceIterator(SourceIterator):
),
"executable": self.source.executable_format.format(game_id=row[2]),
}
game = Game(values, allow_side_effects=False)
game = Game(values)
# Get official image path
image_path = self.source.cache_location["coverart"] / f"{row[2]}.jpg"

View File

@@ -96,7 +96,7 @@ class SteamSourceIterator(SourceIterator):
"game_id": self.source.game_id_format.format(game_id=appid),
"executable": self.source.executable_format.format(game_id=appid),
}
game = Game(values, allow_side_effects=False)
game = Game(values)
# Add official cover image
image_path = (