1
0
Fork 0
mirror of synced 2024-06-17 10:04:43 +12:00

Add override for prepare_overlay_install()

This commit is contained in:
loathingKernel 2022-06-26 15:31:57 +03:00
parent 9af4e7ead8
commit fd2c094dc2

View file

@ -253,3 +253,10 @@ class LegendaryCore(LegendaryCoreReal):
finally:
self.log.removeHandler(handler)
def prepare_overlay_install(self, path=None, status_q: Queue = None):
dlm, analysis_result, igame = super(LegendaryCore, self).prepare_overlay_install(path)
# lk: monkeypatch status_q (the queue for download statistic)
# lk: and run_real (the download function that emits the statistics) into DLManager
dlm.status_queue = status_q
dlm.run_real = DLManager.run_real.__get__(dlm, DLManager)
return dlm, analysis_result, igame