mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-10-13 22:10:12 +02:00
RMG-Audio: retrieve SDL error when SDL_Init() fails
This commit is contained in:
1 parent
6ebbba6fc5
commit
fe67ba053e
1 file changed
+1
-1
@@ -88,7 +88,7 @@ static void sdl_init_audio_device(struct sdl_backend* sdl_backend)
|
||||
{
|
||||
if (!SDL_Init(SDL_INIT_AUDIO))
|
||||
{
|
||||
DebugMessage(M64MSG_ERROR, "Failed to initialize SDL audio subsystem.");
|
||||
DebugMessage(M64MSG_ERROR, "Failed to initialize SDL audio subsystem: %s", SDL_GetError());
|
||||
sdl_backend->error = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user