Skip to content

Commit

Permalink
Set UMU-Proton in compatibilitytools.d
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Mar 23, 2024
1 parent 8a8727b commit 11ca492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions umu/umu_dl_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ def _get_from_steamcompat(
Executed when an error occurs when retrieving and setting the latest
Proton
"""
version: Union[Tuple[str], str] = (
"GE-Proton"
if environ.get("PROTONPATH") == "GE-Proton"
else ("umu-proton", "ULWGL-Proton")
version: str = (
"GE-Proton" if environ.get("PROTONPATH") == "GE-Proton" else "UMU-Proton"
)
protons: List[Path] = sorted(
[proton for proton in steam_compat.glob("*") if proton.name.startswith(version)]
Expand Down Expand Up @@ -278,7 +276,7 @@ def _get_latest(
sums: str = files[0][0]
proton: str = tarball[: tarball.find(".tar.gz")]
version: str = (
"GE-Proton" if environ.get("PROTONPATH") == "GE-Proton" else "umu-proton"
"GE-Proton" if environ.get("PROTONPATH") == "GE-Proton" else "UMU-Proton"
)

if steam_compat.joinpath(proton).is_dir():
Expand Down
2 changes: 1 addition & 1 deletion umu/umu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def setUp(self):
# Steam compat dir
self.test_compat = Path("./tmp.ZssGZoiNod")
# umu-proton dir
self.test_proton_dir = Path("umu-proton-5HYdpddgvs")
self.test_proton_dir = Path("UMU-Proton-5HYdpddgvs")
# umu-proton release
self.test_archive = Path(self.test_cache).joinpath(
f"{self.test_proton_dir}.tar.gz"
Expand Down

0 comments on commit 11ca492

Please sign in to comment.