Explicitly mention SDL in the error message caused by SDL subsystem initialization failure.

This commit is contained in:
Alex Szpakowski
2015-03-26 14:51:47 -03:00
parent 86d41620dd
commit cffa899e03
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ Released: N/A
* Updated the compatibility warning notice to use a message box.
* Updated the compatibility warning notice to display before main.lua is loaded.
* Updated love.keypressed to be love.keypressed(key, scancode, isrepeat).
* Updated love.keyreleased to be love.keyreleleased(key, scancode).
* Updated love.keyreleased to be love.keyreleased(key, scancode).
* Updated love.math.setRandomSeed and RandomGenerator:setSeed to produce better results for the first few random() calls.
* Updated Source methods that deal with spatial audio to error rather than failing silently if the Source isn't mono.
* Updated ImageFonts to no longer treat separator pixels as spacing.
+1 -1
View File
@@ -97,7 +97,7 @@ const char *Event::getName() const
Event::Event()
{
if (SDL_InitSubSystem(SDL_INIT_EVENTS) < 0)
throw love::Exception("%s", SDL_GetError());
throw love::Exception("Could not initialize SDL events subsystem (%s)", SDL_GetError());
SDL_AddEventWatch(watchAppEvents, this);
}
+1 -1
View File
@@ -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++)
+1 -1
View File
@@ -36,7 +36,7 @@ Timer::Timer()
{
// Init the SDL timer system (needed for SDL_Delay.)
if (SDL_InitSubSystem(SDL_INIT_TIMER) < 0)
throw love::Exception("%s", SDL_GetError());
throw love::Exception("Could not initialize SDL timer subsystem (%s)", SDL_GetError());
}
Timer::~Timer()
+1 -1
View File
@@ -55,7 +55,7 @@ Window::Window()
, displayedContextError(false)
{
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
throw love::Exception("%s", SDL_GetError());
throw love::Exception("Could not initialize SDL video subsystem (%s)", SDL_GetError());
}
Window::~Window()