Fix for crash when no gamepads are connected

I recently upgraded to Fedora 40 and 2.3.2-build3869 started to crash when trying to start any game.
For anyone who experience this here's the fix (you'll have to build from source):
Open file doomsday/apps/client/src/unix/joystick.cpp
At the line 236 you'll see: return SDL_JoystickName(joy);
Replace this line with these:
if(joy)
return SDL_JoystickName(joy);
return "";
Then rebuild.
Sign In or Register to comment.