Skip to content

Commit

Permalink
Steam virtual gamepad info isn't available in the macOS sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 16, 2024
1 parent d6981da commit 28504f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/joystick/SDL_steam_virtual_gamepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ void SDL_InitSteamVirtualGamepadInfo(void)

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);
if (file && *file) {
SDL_steam_virtual_gamepad_info_file = SDL_strdup(file);
Expand Down

0 comments on commit 28504f5

Please sign in to comment.