Compare commits

...

3 commits

Author SHA1 Message Date
Aida Jonikienė
ef648dce14 Merge branch 'mr/sdl-hide' into 'master'
ntdll: Add some SDL variables to the special variables list.

See merge request wine/wine!5231
2024-11-16 12:04:33 +00:00
Aida Jonikienė
446328b50f ntdll: Add SDL audio driver variables to the special variables list.
This has the same issue as the video driver variable (but on a smaller
scale because games more rarely use SDL for audio).
2024-07-23 13:25:42 +03:00
Aida Jonikienė
a4b434226b ntdll: Add SDL video driver variables 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).
2024-07-23 13:22:32 +03:00

View file

@ -344,6 +344,10 @@ static BOOL is_special_env_var( const char *var )
STARTS_WITH( var, "TEMP=" ) ||
STARTS_WITH( var, "TMP=" ) ||
STARTS_WITH( var, "QT_" ) ||
STARTS_WITH( var, "SDL_AUDIODRIVER=" ) ||
STARTS_WITH( var, "SDL_AUDIO_DRIVER=" ) ||
STARTS_WITH( var, "SDL_VIDEODRIVER=" ) ||
STARTS_WITH( var, "SDL_VIDEO_DRIVER=" ) ||
STARTS_WITH( var, "VK_" ) ||
STARTS_WITH( var, "XDG_SESSION_TYPE=" ));
}