mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-05 03:09:39 +03:00
proton: Only dump debug scripts when requested
This commit is contained in:
parent
af9eb02401
commit
1b9d405d14
@ -190,6 +190,7 @@ the Wine prefix. Removing the option will revert to the previous behavior.
|
|||||||
| Compat config string | Environment Variable | Description |
|
| Compat config string | Environment Variable | Description |
|
||||||
| :-------------------- | :----------------------------- | :----------- |
|
| :-------------------- | :----------------------------- | :----------- |
|
||||||
| | <tt>PROTON_LOG</tt> | Convenience method for dumping a useful debug log to `$HOME/steam-$APPID.log`. For more thorough logging, use `user_settings.py`. |
|
| | <tt>PROTON_LOG</tt> | Convenience method for dumping a useful debug log to `$HOME/steam-$APPID.log`. For more thorough logging, use `user_settings.py`. |
|
||||||
|
| | <tt>PROTON_DUMP_DEBUG_COMMANDS</tt> | When running a game, Proton will write some useful debug scripts for that game into <tt>/tmp/proton_$USER/</tt>. |
|
||||||
| <tt>wined3d11</tt> | <tt>PROTON_USE_WINED3D11</tt> | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11. |
|
| <tt>wined3d11</tt> | <tt>PROTON_USE_WINED3D11</tt> | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11. |
|
||||||
| <tt>nod3d11</tt> | <tt>PROTON_NO_D3D11</tt> | Disable <tt>d3d11.dll</tt>, for games which can fall back to and run better with d3d9. |
|
| <tt>nod3d11</tt> | <tt>PROTON_NO_D3D11</tt> | Disable <tt>d3d11.dll</tt>, for games which can fall back to and run better with d3d9. |
|
||||||
| <tt>noesync</tt> | <tt>PROTON_NO_ESYNC</tt> | Do not use eventfd-based in-process synchronization primitives. |
|
| <tt>noesync</tt> | <tt>PROTON_NO_ESYNC</tt> | Do not use eventfd-based in-process synchronization primitives. |
|
||||||
|
18
proton
18
proton
@ -463,14 +463,16 @@ def dump_dbg_scripts():
|
|||||||
os.chmod("/tmp/proton_run", 0755)
|
os.chmod("/tmp/proton_run", 0755)
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
# if "PROTON_DUMP_DEBUG_COMMAND" in os.environ: #for now, we are always dumping the debug scripts
|
if "PROTON_DUMP_DEBUG_COMMANDS" in os.environ:
|
||||||
dump_dbg_scripts()
|
try:
|
||||||
# else: #see above
|
dump_dbg_scripts()
|
||||||
if game_arch == ARCH_UNKNOWN:
|
except:
|
||||||
#probably a batch script or something, hopefully start.exe can handle it
|
log("Unable to write debug scripts to /tmp/, probably someone else already owns them.")
|
||||||
run_wine([wine_path, "start", "/unix"] + sys.argv[2:])
|
if game_arch == ARCH_UNKNOWN:
|
||||||
else:
|
#probably a batch script or something, hopefully start.exe can handle it
|
||||||
run_wine([wine_path] + sys.argv[2:])
|
run_wine([wine_path, "start", "/unix"] + sys.argv[2:])
|
||||||
|
else:
|
||||||
|
run_wine([wine_path] + sys.argv[2:])
|
||||||
|
|
||||||
#determine mode
|
#determine mode
|
||||||
if sys.argv[1] == "run":
|
if sys.argv[1] == "run":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user