1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

RareGame: don't delete .egstore if the game is a DLC

VerifyWorker: use RareGame property to apply the verification check
to any DLCs
This commit is contained in:
loathingKernel 2023-03-15 21:20:52 +02:00
parent dc20293abb
commit 3236a4090c
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
3 changed files with 3 additions and 2 deletions

View file

@ -161,7 +161,8 @@ class RareGame(RareGameSlim):
def update_igame(self):
self.igame = self.core.get_installed_game(self.app_name)
if self.igame is not None:
self.core.egstore_delete(self.igame)
if not self.is_dlc:
self.core.egstore_delete(self.igame)
self.core.egstore_write(self.igame.app_name)
def store_igame(self):

View file

@ -247,7 +247,6 @@ class RareCore(QObject):
rgame = RareGame(self.__core, self.__image_manager, game)
return rgame
def __add_games_and_dlcs(self, games: List[Game], dlcs_dict: Dict[str, List]) -> None:
length = len(games)
for idx, game in enumerate(games):

View file

@ -79,6 +79,7 @@ class VerifyWorker(QueueWorker):
cli.install_game_cleanup(
game=self.rgame.game, igame=self.rgame.igame, repair_mode=True, repair_file=repair_file
)
self.rgame.needs_verification = False
self.rgame.update_rgame()
self.rgame.signals.progress.finish.emit(False)