mirror of https://github.com/libsdl-org/SDL.git
Fixed Steam Runtime sandbox detection
Fixes hotplug issues on Steam Deck for Proton and native games
This commit is contained in:
parent
4187c6c08c
commit
bcd97b36d2
|
|
@ -37,7 +37,7 @@ SDL_Sandbox SDL_DetectSandbox(void)
|
||||||
return SDL_SANDBOX_SNAP;
|
return SDL_SANDBOX_SNAP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (access("/run/host/container-runtime", F_OK) == 0) {
|
if (access("/run/host/container-manager", F_OK) == 0) {
|
||||||
return SDL_SANDBOX_UNKNOWN_CONTAINER;
|
return SDL_SANDBOX_UNKNOWN_CONTAINER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue