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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user