fix: str -> Path

This commit is contained in:
tretrauit 2023-05-25 10:41:51 +07:00
parent 0af4c4f2df
commit 836c843b2e
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,8 @@ class Patcher:
# Delete old Telemetry.dll on Linux (cAsE sEnsItIvE)
if platform.system() == "Linux":
telemetry_path = self._installer.get_game_data_name().joinpath("Plugins/Telemetry.dll")
if telemetry_path.exists() and self._installer.get_game_data_name().joinpath("Plugins/telemetry.dll").exists():
telemetry_path = Path(self._installer.get_game_data_name()).joinpath("Plugins/Telemetry.dll")
if telemetry_path.exists() and Path(self._installer.get_game_data_name()).joinpath("Plugins/telemetry.dll").exists():
await telemetry_path.unlink()
patch_jobs.append(disable_crashreporters())