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.
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.
Comments
https://disk.yandex.ru/d/w0-enJ9Glq4WGQ
To build use cmake instructions. You need to download fmodstudioapi version 1, should be still available at fmod site, but just in case:
https://disk.yandex.ru/d/SElk02fSbM_j9w
Unpack source, create 'build' directory inside, enter it and run:
cmake .. -DFMOD_DIR=/path/to/fmod
Or use any cmake build setup interface to set other variables manually (ccmake for example works from terminal, run 'ccmake ..')
If cmake complain about dependecies not found, install them and try again.
After successful configuration run make then make install.