mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
Explicitly mention SDL in the error message caused by SDL subsystem initialization failure.
This commit is contained in:
@@ -42,7 +42,7 @@ namespace sdl
|
||||
JoystickModule::JoystickModule()
|
||||
{
|
||||
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0)
|
||||
throw love::Exception("%s", SDL_GetError());
|
||||
throw love::Exception("Could not initialize SDL joystick subsystem (%s)", SDL_GetError());
|
||||
|
||||
// Initialize any joysticks which are already connected.
|
||||
for (int i = 0; i < SDL_NumJoysticks(); i++)
|
||||
|
||||
Reference in New Issue
Block a user