mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-22 08:41:02 +00:00
Fixed Steam Runtime sandbox detection
Fixes hotplug issues on Steam Deck for Proton and native games (cherry picked from commit bcd97b36d23d08226e98a995eafd3d6aa35401b4)
This commit is contained in:
parent
69b2baec5c
commit
e7376b7b74
|
@ -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 a new issue