Skip to content

Commit 1ab55c5

Browse files
committed
Steam virtual gamepad info isn't available in the macOS sandbox
1 parent 76c7778 commit 1ab55c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/joystick/SDL_steam_virtual_gamepad.c

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ void SDL_InitSteamVirtualGamepadInfo(void)
127127

128128
SDL_AssertJoysticksLocked();
129129

130+
// The file isn't available inside the macOS sandbox
131+
if (SDL_GetSandbox() == SDL_SANDBOX_MACOS) {
132+
return;
133+
}
134+
130135
file = SDL_GetHint(SDL_HINT_STEAM_VIRTUAL_GAMEPAD_INFO_FILE);
131136
if (file && *file) {
132137
SDL_steam_virtual_gamepad_info_file = SDL_strdup(file);

0 commit comments

Comments
 (0)