diff --git a/README.md b/README.md index 217971f7..31d1b85e 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,7 @@ the Wine prefix. Removing the option will revert to the previous behavior. | | PROTON_LOG_DIR | Output log files into the directory specified. Defaults to your home directory. | | | PROTON_DUMP_DEBUG_COMMANDS | When running a game, Proton will write some useful debug scripts for that game into `$PROTON_DEBUG_DIR/proton_$USER/`. | | | PROTON_DEBUG_DIR | Root directory for the Proton debug scripts, `/tmp` by default. | +| | PROTON_CRASH_REPORT_DIR | Write crash logs into this directory. Does not clean up old logs, so may eat all your disk space eventually. | | wined3d | PROTON_USE_WINED3D | Use OpenGL-based wined3d instead of Vulkan-based DXVK for d3d11, d3d10, and d3d9. | | nod3d11 | PROTON_NO_D3D11 | Disable d3d11.dll, for d3d11 games which can fall back to and run better with d3d9. | | nod3d10 | PROTON_NO_D3D10 | Disable d3d10.dll and dxgi.dll, for d3d10 games which can fall back to and run better with d3d9. | diff --git a/proton b/proton index 142f683a..5226709d 100755 --- a/proton +++ b/proton @@ -779,6 +779,9 @@ class Session: if "hidenvgpu" in self.compat_config: self.env["WINE_HIDE_NVIDIA_GPU"] = "1" + if "PROTON_CRASH_REPORT_DIR" in self.env: + self.env["WINE_CRASH_REPORT_DIR"] = self.env["PROTON_CRASH_REPORT_DIR"] + if "SteamGameId" in self.env: if self.env["WINEDEBUG"] != "-all": basedir = self.env.get("PROTON_LOG_DIR", os.environ["HOME"])