fix: telemetry.dll rename

This commit is contained in:
tretrauit 2023-05-25 10:28:17 +07:00
parent 5a6f8e39af
commit 45006ef4b5
1 changed files with 6 additions and 0 deletions

View File

@ -244,6 +244,12 @@ class Patcher:
if file_path.exists():
await AsyncPath(file_path).rename(str(file_path) + ".bak")
# 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():
await telemetry_path.unlink()
patch_jobs.append(disable_crashreporters())
await asyncio.gather(*patch_jobs)