Emscripten: Added missing error messages for audio and joystick init failures.

This commit is contained in:
Philipp Wiesemann
2015-08-05 21:04:10 +02:00
parent 2d8c49fdbd
commit fcc5940935
2 changed files with 7 additions and 0 deletions

View File

@@ -263,6 +263,10 @@ Emscripten_Init(SDL_AudioDriverImpl * impl)
return 0;
});
if (!available) {
SDL_SetError("No audio context available");
}
return available;
}