1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

RareGame: export .egstore only after installing and successful verification

This commit is contained in:
loathingKernel 2023-03-16 18:07:33 +02:00
parent c3231d9e17
commit a768bce996
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 8 additions and 5 deletions

View file

@ -288,7 +288,7 @@ class DownloadsTab(QWidget):
@pyqtSlot(InstallQueueItemModel)
def __on_install_dialog_closed(self, item: InstallQueueItemModel):
if item and not item.download.analysis.dl_size:
if item and not item.download.game.is_dlc and not item.download.analysis.dl_size:
self.rcore.get_game(item.download.game.app_name).set_installed(True)
return
if item:

View file

@ -160,10 +160,6 @@ class RareGame(RareGameSlim):
def update_igame(self):
self.igame = self.core.get_installed_game(self.app_name)
if self.igame is not None:
if not self.is_dlc:
self.core.egstore_delete(self.igame)
self.core.egstore_write(self.igame.app_name)
def store_igame(self):
self.core.lgd.set_installed_game(self.app_name, self.igame)
@ -282,6 +278,9 @@ class RareGame(RareGameSlim):
"""
if installed:
self.update_igame()
if not self.is_dlc:
self.core.egstore_delete(self.igame)
self.core.egstore_write(self.igame.app_name)
self.signals.game.installed.emit(self.app_name)
if self.has_update:
self.signals.download.enqueue.emit(self.app_name)
@ -361,6 +360,10 @@ class RareGame(RareGameSlim):
for dlc in self.owned_dlcs:
if dlc.is_installed:
dlc.needs_verification = needs
if not needs:
if not self.is_dlc:
self.core.egstore_delete(self.igame)
self.core.egstore_write(self.igame.app_name)
@property
def repair_file(self) -> str: