mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-07-31 17:41:48 +03:00
proton: Add runinprefix verb for running a program in a running session
CW-Bug-Id: 16785
This commit is contained in:
parent
5e11a15953
commit
9bd6cc487b
6
proton
6
proton
@ -824,8 +824,6 @@ class Session:
|
|||||||
else:
|
else:
|
||||||
self.env["WINEDEBUG"] = "-all"
|
self.env["WINEDEBUG"] = "-all"
|
||||||
|
|
||||||
g_compatdata.setup_prefix()
|
|
||||||
|
|
||||||
if "nod3d11" in self.compat_config:
|
if "nod3d11" in self.compat_config:
|
||||||
self.dlloverrides["d3d11"] = ""
|
self.dlloverrides["d3d11"] = ""
|
||||||
if "dxgi" in self.dlloverrides:
|
if "dxgi" in self.dlloverrides:
|
||||||
@ -996,6 +994,8 @@ if __name__ == "__main__":
|
|||||||
g_proton.make_default_prefix()
|
g_proton.make_default_prefix()
|
||||||
|
|
||||||
g_session.init_session()
|
g_session.init_session()
|
||||||
|
if sys.argv[1] != "runinprefix":
|
||||||
|
g_compatdata.setup_prefix()
|
||||||
|
|
||||||
#determine mode
|
#determine mode
|
||||||
if sys.argv[1] == "run":
|
if sys.argv[1] == "run":
|
||||||
@ -1006,6 +1006,8 @@ if __name__ == "__main__":
|
|||||||
g_session.run_proc([g_proton.wineserver_bin, "-w"])
|
g_session.run_proc([g_proton.wineserver_bin, "-w"])
|
||||||
#then run
|
#then run
|
||||||
g_session.run()
|
g_session.run()
|
||||||
|
elif sys.argv[1] == "runinprefix":
|
||||||
|
g_session.run_proc([g_proton.wine_bin] + sys.argv[2:])
|
||||||
elif sys.argv[1] == "getcompatpath":
|
elif sys.argv[1] == "getcompatpath":
|
||||||
#linux -> windows path
|
#linux -> windows path
|
||||||
path = subprocess.check_output([g_proton.wine_bin, "winepath", "-w", sys.argv[2]], env=g_session.env, stderr=g_session.log_file)
|
path = subprocess.check_output([g_proton.wine_bin, "winepath", "-w", sys.argv[2]], env=g_session.env, stderr=g_session.log_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user