Disabled Steam RetroArch to merge improvements to main

This commit is contained in:
GeoffreyCoulaud
2023-08-17 14:07:04 +02:00
parent f8037e2542
commit 195f7dbb7e

View File

@@ -172,7 +172,8 @@ class RetroarchSource(Source):
def __init__(self) -> None: def __init__(self) -> None:
super().__init__() super().__init__()
self.add_steam_location_candidate() # TODO enable when we get the Steam RetroArch games work
# self.add_steam_location_candidate()
def add_steam_location_candidate(self) -> None: def add_steam_location_candidate(self) -> None:
"""Add the Steam RetroAcrh location to the config candidates""" """Add the Steam RetroAcrh location to the config candidates"""
@@ -231,12 +232,13 @@ class RetroarchSource(Source):
# Steam RetroArch # Steam RetroArch
# (Must check before Flatpak, because Steam itself can be installed as one) # (Must check before Flatpak, because Steam itself can be installed as one)
if self.locations.config.root.parent.parent.name == "steamapps": # TODO enable when we get Steam RetroArch executable to work
# steam://run exepects args to be url-encoded and separated by spaces. # if self.locations.config.root.parent.parent.name == "steamapps":
args = map(lambda s: url_quote(str(s), safe=""), args) # # steam://run exepects args to be url-encoded and separated by spaces.
args_str = " ".join(args) # args = map(lambda s: url_quote(str(s), safe=""), args)
uri = f"steam://run/1118310//{args_str}/" # args_str = " ".join(args)
return f"xdg-open {shell_quote(uri)}" # uri = f"steam://run/1118310//{args_str}/"
# return f"xdg-open {shell_quote(uri)}"
# Flatpak RetroArch # Flatpak RetroArch
args = map(lambda s: shell_quote(str(s)), args) args = map(lambda s: shell_quote(str(s)), args)