proton: Fix noforcelgadd option.

Code in Wine still enables the hack when WINE_LARGE_ADDRESS_AWARE is
missing, need to set it to non-'1' to really disable.

CW-Bug-Id: #22930
This commit is contained in:
Paul Gofman 2023-11-03 15:23:49 -06:00 committed by Arkadiusz Hiler
parent 52667847c4
commit c6d562b388

3
proton
View file

@ -1427,6 +1427,9 @@ class Session:
if "forcelgadd" in self.compat_config:
self.env["WINE_LARGE_ADDRESS_AWARE"] = "1"
else:
if "noforcelgadd" in self.compat_config:
self.env["WINE_LARGE_ADDRESS_AWARE"] = "0"
if "heapdelayfree" in self.compat_config:
self.env["WINE_HEAP_DELAY_FREE"] = "1"