From dea349153fc8c4e561d729d3e13fa77415df453f Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 31 Aug 2018 08:40:31 -0500 Subject: [PATCH] proton: Fix dumping byte string to JSON on python3 --- proton.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proton.in b/proton.in index 265cfd66..2750f2fb 100755 --- a/proton.in +++ b/proton.in @@ -283,11 +283,11 @@ with prefix_lock: j = { "runtime": [ "C:\\vrclient\\", "C:\\vrclient" ] } if not vr_config is None: - win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=lfile) + win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=lfile).decode("utf-8") j["config"] = [ win_vr_config.strip() ] if not vr_log is None: - win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=lfile) + win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=lfile).decode("utf-8") j["log"] = [ win_vr_log.strip() ] j["version"] = 1 @@ -295,7 +295,7 @@ with prefix_lock: json.dump(j, open(vrpaths_name, "w"), indent=2) except: - pass + log("Unable to write VR config! " + str(sys.exc_info()[1])) def make_dxvk_links(dll_dir, link_dir): if os.path.lexists(link_dir + "/d3d11.dll"):