1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Show SDL error message if no context was created

This commit is contained in:
Gymnasiast
2021-10-09 19:08:06 +02:00
committed by Tulio Leao
parent 3127a4dc64
commit 1c851f022c

View File

@@ -61,9 +61,9 @@ int main(int argc, const char** argv)
{
audioContext = ToShared(CreateAudioContext());
}
catch (const SDLException&)
catch (const SDLException& e)
{
log_warning("Failed to create audio context. Using dummy audio context.");
log_warning("Failed to create audio context. Using dummy audio context. Error message was: %s", e.what());
audioContext = ToShared(CreateDummyAudioContext());
}
auto uiContext = ToShared(CreateUiContext(env));