Skip to content
Snippets Groups Projects

Draft: Integration test for smcv's pending branches

Open Simon McVittie requested to merge wip/smcv/staging into main
Compare and Show latest version
3 files
+ 45
5
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 6
0
@@ -36,6 +36,10 @@ static int check_features (char *features)
char *saveptr = NULL;
char *token;
if (strcmp0(getenv("XDG_CURRENT_DESKTOP"), "gamescope") == 0) {
return SDL_SetError("This implementation does not yet work under Gamescope");
}
for (token = strtok_r(features, " \t\n", &saveptr);
token != NULL;
token = strtok_r(NULL, " \t\n", &saveptr)) {
@@ -996,6 +1000,8 @@ main (int argc,
/* The protocol used to tell Gamescope to count this window as part
* of Steam only works under X11 */
/* (This is currently not reached in practice because --check-features
* bails out early under Gamescope) */
if (strcmp0(getenv("XDG_CURRENT_DESKTOP"), "gamescope") == 0) {
info("Forcing X11 video driver for Gamescope session");
setenv("SDL_VIDEODRIVER", "x11", 1);
Loading