Skip to content

Commit

Permalink
Merge pull request #449 from loathingKernel/develop
Browse files Browse the repository at this point in the history
Lgndr: remove renamed _resolve_aliases method, override _print_json method
  • Loading branch information
loathingKernel authored Sep 5, 2024
2 parents 00667d9 + 1a21a33 commit 9e2380e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rare/components/tabs/games/integrations/import_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions rare/lgndr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]:
Expand Down

0 comments on commit 9e2380e

Please sign in to comment.