From f96c8d6e6a10725fa50e12a03238e76a817cf5f2 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 5 Mar 2020 13:21:29 -0600 Subject: [PATCH] proton: Add noforcelgadd compat config option --- README.md | 3 ++- proton | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a0ece65..bc9e1d05 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,8 @@ the Wine prefix. Removing the option will revert to the previous behavior. | nod3d10 | PROTON_NO_D3D10 | Disable d3d10.dll and dxgi.dll, for d3d10 games which can fall back to and run better with d3d9. | | noesync | PROTON_NO_ESYNC | Do not use eventfd-based in-process synchronization primitives. | | nofsync | PROTON_NO_FSYNC | Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no `FUTEX_WAIT_MULTIPLE` support.) | -| forcelgadd | PROTON_FORCE_LARGE_ADDRESS_AWARE | Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. | +| forcelgadd | PROTON_FORCE_LARGE_ADDRESS_AWARE | Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | +| noforcelgadd | | Disable forcelgadd. If both this and `forcelgadd` are set, enabled wins. | | oldglstr | PROTON_OLD_GL_STRING | Set some driver overrides to limit the length of the GL extension string, for old games that crash on very long extension strings. | | | WINE_FULLSCREEN_INTEGER_SCALING | Enable integer scaling mode, to give sharp pixels when upscaling. | | d9vk | PROTON_USE_D9VK | **Note: Obsoleted in Proton 5.0.** In older versions, use Vulkan-based DXVK instead of OpenGL-based wined3d for d3d9. | diff --git a/proton b/proton index 860004ef..59b2b0cd 100755 --- a/proton +++ b/proton @@ -377,7 +377,10 @@ class Session: self.compat_config = set(os.environ["STEAM_COMPAT_CONFIG"].split(",")) else: self.compat_config = set() - self.compat_config.add("forcelgadd") + + #turn forcelgadd on by default unless it is disabled in compat config + if not "noforcelgadd" in self.compat_config: + self.compat_config.add("forcelgadd") def init_wine(self): if "HOST_LC_ALL" in self.env and len(self.env["HOST_LC_ALL"]) > 0: