From fd2c094dc2f252dc2817e08569fd805923d92892 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sun, 26 Jun 2022 15:31:57 +0300 Subject: [PATCH] Add override for `prepare_overlay_install()` --- rare/lgndr/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rare/lgndr/core.py b/rare/lgndr/core.py index 2f990177..a748e1e7 100644 --- a/rare/lgndr/core.py +++ b/rare/lgndr/core.py @@ -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