RareGame: export .egstore
only after installing and successful verification
This commit is contained in:
parent
c3231d9e17
commit
a768bce996
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue