mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 23:07:45 +08:00
Steam virtual gamepad info isn't available in the macOS sandbox
This commit is contained in:
@@ -127,6 +127,11 @@ void SDL_InitSteamVirtualGamepadInfo(void)
|
|||||||
|
|
||||||
SDL_AssertJoysticksLocked();
|
SDL_AssertJoysticksLocked();
|
||||||
|
|
||||||
|
// The file isn't available inside the macOS sandbox
|
||||||
|
if (SDL_GetSandbox() == SDL_SANDBOX_MACOS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
file = SDL_GetHint(SDL_HINT_STEAM_VIRTUAL_GAMEPAD_INFO_FILE);
|
file = SDL_GetHint(SDL_HINT_STEAM_VIRTUAL_GAMEPAD_INFO_FILE);
|
||||||
if (file && *file) {
|
if (file && *file) {
|
||||||
SDL_steam_virtual_gamepad_info_file = SDL_strdup(file);
|
SDL_steam_virtual_gamepad_info_file = SDL_strdup(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user