Skip to content

Commit

Permalink
umu_run: remove unused import and fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Jan 7, 2025
1 parent 3fb1481 commit 653a620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
from umu.umu_runtime import setup_umu
from umu.umu_util import (
CompatibilityTool,
SteamRuntime,
get_libc,
get_library_paths,
has_umu_setup,
Expand Down Expand Up @@ -326,7 +325,7 @@ def build_command(
raise FileNotFoundError(err)

if env.get("UMU_NO_TOOL") == "1":
runtime = CompatibilityTool(RUNTIME_VERSIONS[RUNTIME_NAMES["sniper"]].path)
runtime = CompatibilityTool(str(RUNTIME_VERSIONS[RUNTIME_NAMES["sniper"]].path), shim)
# Will run the game within the Steam Runtime w/o Proton
# Ideally, for reliability, executables should be compiled within
# the Steam Runtime
Expand Down
2 changes: 1 addition & 1 deletion umu/umu_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class SteamRuntime(SteamBase):
def __init__(self, path: str) -> None: # noqa: D107
super().__init__(path)
self.runtime = (
SteamRuntime(self.required_runtime.path.as_posix())
SteamRuntime(str(self.required_runtime.path))
if self.required_tool_appid is not None
else None
)
Expand Down

0 comments on commit 653a620

Please sign in to comment.