mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-22 03:08:22 +00:00
Emscripten: Added missing error messages for audio and joystick init failures.
This commit is contained in:
@@ -263,6 +263,10 @@ Emscripten_Init(SDL_AudioDriverImpl * impl)
|
||||
return 0;
|
||||
});
|
||||
|
||||
if (!available) {
|
||||
SDL_SetError("No audio context available");
|
||||
}
|
||||
|
||||
return available;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user