From 300d23ca7cec71336537e2c59be638aed5e9f4ed Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Wed, 25 Nov 2020 20:26:18 -0800 Subject: [PATCH] proton: give transcoded files their own path STEAM_COMPAT_TRANSCODED_MEDIA_PATH --- proton | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/proton b/proton index ea6e9afc..948edb5e 100755 --- a/proton +++ b/proton @@ -612,9 +612,11 @@ class Session: if "STEAM_COMPAT_MEDIA_PATH" in os.environ: self.env["MEDIACONV_AUDIO_DUMP_FILE"] = os.environ["STEAM_COMPAT_MEDIA_PATH"] + "/audio.foz" - self.env["MEDIACONV_AUDIO_TRANSCODED_FILE"] = os.environ["STEAM_COMPAT_MEDIA_PATH"] + "/transcoded_audio.foz" self.env["MEDIACONV_VIDEO_DUMP_FILE"] = os.environ["STEAM_COMPAT_MEDIA_PATH"] + "/video.foz" - self.env["MEDIACONV_VIDEO_TRANSCODED_FILE"] = os.environ["STEAM_COMPAT_MEDIA_PATH"] + "/transcoded_video.foz" + + if "STEAM_COMPAT_TRANSCODED_MEDIA_PATH" in os.environ: + self.env["MEDIACONV_AUDIO_TRANSCODED_FILE"] = os.environ["STEAM_COMPAT_TRANSCODED_MEDIA_PATH"] + "/transcoded_audio.foz" + self.env["MEDIACONV_VIDEO_TRANSCODED_FILE"] = os.environ["STEAM_COMPAT_TRANSCODED_MEDIA_PATH"] + "/transcoded_video.foz" if "PATH" in os.environ: self.env["PATH"] = g_proton.bin_dir + ":" + os.environ["PATH"]