mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-26 13:38:15 +03:00
Add translatepath support
This commit is contained in:
parent
836a2ac537
commit
de529b4d05
13
proton
13
proton
@ -173,7 +173,16 @@ if not vr_runtime is None:
|
||||
except:
|
||||
pass
|
||||
|
||||
#start target app
|
||||
run_wine([wine_path] + sys.argv[1:])
|
||||
#determine mode
|
||||
if sys.argv[1] == "run":
|
||||
#start target app
|
||||
run_wine([wine_path] + sys.argv[2:])
|
||||
elif sys.argv[1] == "translatepath":
|
||||
#get windows path equivalent
|
||||
path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=open("/dev/null", "w"))
|
||||
stdout.write(path)
|
||||
else:
|
||||
#???
|
||||
sys.exit(1)
|
||||
|
||||
sys.exit(0)
|
||||
|
@ -1,4 +1,5 @@
|
||||
"manifest"
|
||||
{
|
||||
"commandline" "/proton"
|
||||
"commandline" "/proton run"
|
||||
"commandline_translatepath" = "/proton winepath"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user