proton: Fix dumping byte string to JSON on python3
This commit is contained in:
parent
0c7144c32c
commit
dea349153f
1 changed files with 3 additions and 3 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue