From 1a21a3335269e2e13966f6d4fc4a89b58e391354 Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:53:44 +0300 Subject: [PATCH] Lgndr: remove renamed _resolve_aliases method, override _print_json method --- rare/components/tabs/games/integrations/import_group.py | 2 +- rare/lgndr/cli.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rare/components/tabs/games/integrations/import_group.py b/rare/components/tabs/games/integrations/import_group.py index 7dede9c939..dc73c01e23 100644 --- a/rare/components/tabs/games/integrations/import_group.py +++ b/rare/components/tabs/games/integrations/import_group.py @@ -40,7 +40,7 @@ def find_app_name(path: str, core) -> Optional[str]: with open(os.path.join(path, ".egstore", i)) as file: app_name = json.load(file).get("AppName") return app_name - elif app_name := LegendaryCLI(core).resolve_aliases(os.path.basename(os.path.normpath(path))): + elif app_name := LegendaryCLI(core)._resolve_aliases(os.path.basename(os.path.normpath(path))): # return None if game does not exist (Workaround for overlay) if not core.get_game(app_name): return None diff --git a/rare/lgndr/cli.py b/rare/lgndr/cli.py index f8263732f0..2e17bfa3be 100644 --- a/rare/lgndr/cli.py +++ b/rare/lgndr/cli.py @@ -56,8 +56,9 @@ def unlock(self, *args, **kwargs): return ret return unlock - def resolve_aliases(self, name): - return super(LegendaryCLI, self)._resolve_aliases(name) + @staticmethod + def _print_json(data, pretty=False): + return data @unlock_installed.__func__ def install_game(self, args: LgndrInstallGameArgs) -> Optional[Tuple[DLManager, AnalysisResult, InstalledGame, Game, bool, Optional[str], ConditionCheckResult]]: