mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-05 22:18:03 +01:00
proton: Also log during winepath operations
This commit is contained in:
parent
4cda34da0f
commit
f5b838c9e6
1 changed files with 4 additions and 4 deletions
8
proton
8
proton
|
|
@ -195,11 +195,11 @@ if not vr_runtime is None:
|
||||||
j = { "runtime": [ "C:\\vrclient\\", "C:\\vrclient" ] }
|
j = { "runtime": [ "C:\\vrclient\\", "C:\\vrclient" ] }
|
||||||
|
|
||||||
if not vr_config is None:
|
if not vr_config is None:
|
||||||
win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=open("/dev/null", "w"))
|
win_vr_config = subprocess.check_output([wine_path, "winepath", "-w", vr_config], env=env, stderr=lfile)
|
||||||
j["config"] = [ win_vr_config.strip() ]
|
j["config"] = [ win_vr_config.strip() ]
|
||||||
|
|
||||||
if not vr_log is None:
|
if not vr_log is None:
|
||||||
win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=open("/dev/null", "w"))
|
win_vr_log = subprocess.check_output([wine_path, "winepath", "-w", vr_log], env=env, stderr=lfile)
|
||||||
j["log"] = [ win_vr_log.strip() ]
|
j["log"] = [ win_vr_log.strip() ]
|
||||||
|
|
||||||
j["version"] = 1
|
j["version"] = 1
|
||||||
|
|
@ -295,11 +295,11 @@ if sys.argv[1] == "run":
|
||||||
run_wine([wine_path] + sys.argv[2:])
|
run_wine([wine_path] + sys.argv[2:])
|
||||||
elif sys.argv[1] == "getcompatpath":
|
elif sys.argv[1] == "getcompatpath":
|
||||||
#linux -> windows path
|
#linux -> windows path
|
||||||
path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=open("/dev/null", "w"))
|
path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=lfile)
|
||||||
sys.stdout.write(path)
|
sys.stdout.write(path)
|
||||||
elif sys.argv[1] == "getnativepath":
|
elif sys.argv[1] == "getnativepath":
|
||||||
#windows -> linux path
|
#windows -> linux path
|
||||||
path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=open("/dev/null", "w"))
|
path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=lfile)
|
||||||
sys.stdout.write(path)
|
sys.stdout.write(path)
|
||||||
else:
|
else:
|
||||||
log("Need a verb.")
|
log("Need a verb.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue