From af9eb0240116d5f89ad6346ddcb54c314de399ce Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 22 Aug 2018 14:43:40 -0500 Subject: [PATCH] proton: Dump some default logging if PROTON_LOG is set --- README.md | 1 + proton | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 285b26b6..70341829 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,7 @@ the Wine prefix. Removing the option will revert to the previous behavior. | Compat config string | Environment Variable | Description | | :-------------------- | :----------------------------- | :----------- | +| | PROTON_LOG | Convenience method for dumping a useful debug log to `$HOME/steam-$APPID.log`. For more thorough logging, use `user_settings.py`. | | wined3d11 | PROTON_USE_WINED3D11 | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11. | | nod3d11 | PROTON_NO_D3D11 | Disable d3d11.dll, for games which can fall back to and run better with d3d9. | | noesync | PROTON_NO_ESYNC | Do not use eventfd-based in-process synchronization primitives. | diff --git a/proton b/proton index c88d7209..fd186600 100755 --- a/proton +++ b/proton @@ -131,6 +131,9 @@ with dist_lock: prefix = os.environ["STEAM_COMPAT_DATA_PATH"] + "/pfx/" env["WINEPREFIX"] = prefix +if "PROTON_LOG" in env: + env["WINEDEBUG"] = "+timestamp,+pid,+tid,+seh,+debugstr,+module" + #load environment overrides if os.path.exists(basedir + "/user_settings.py"): try: