[PATCH v3 0/1] MR5231: ntdll: Add SDL_AUDIO*/SDL_VIDEO* to the special variables list.
Overriding the SDL_VIDEODRIVER variable (for Wayland support as an example) on the Linux side can lead to some games under Wine failing to load (so treat that variable as special). -- v3: ntdll: Add SDL_AUDIO*/SDL_VIDEO* to the special variables list. https://gitlab.winehq.org/wine/wine/-/merge_requests/5231
From: Aida Jonikienė <aidas957(a)gmail.com> Overriding the SDL_VIDEODRIVER variable (for Wayland support as an example) on the Linux side can lead to some games under Wine failing to load (so treat that variable as special). --- dlls/ntdll/unix/env.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ad9ab0dc220..73a11a6fd97 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -341,7 +341,9 @@ static BOOL is_special_env_var( const char *var ) STARTS_WITH( var, "TEMP=" ) || STARTS_WITH( var, "TMP=" ) || STARTS_WITH( var, "QT_" ) || - STARTS_WITH( var, "VK_" )); + STARTS_WITH( var, "VK_" ) || + STARTS_WITH( var, "SDL_AUDIO" ) || + STARTS_WITH( var, "SDL_VIDEO" )); } /* check if an environment variable changes dynamically in every new process */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5231
I updated the MR to treat all `SDL_AUDIO*`/`SDL_VIDEO*` variables as special (hopefully that's not too broad) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5231#note_68180
participants (1)
-
Aida Jonikienė