Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lgndr: remove renamed _resolve_aliases method, override _print_json method #449

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading