mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge branch 'morrowland_the_musical' into 'master'
Stop trying to play non-existent music files started by scripts See merge request OpenMW/openmw!1293
This commit is contained in:
commit
29082ff658
@ -224,7 +224,16 @@ namespace MWSound
|
||||
stopMusic();
|
||||
|
||||
DecoderPtr decoder = getDecoder();
|
||||
decoder->open(filename);
|
||||
try
|
||||
{
|
||||
decoder->open(filename);
|
||||
}
|
||||
catch(std::exception &e)
|
||||
{
|
||||
Log(Debug::Error) << "Failed to load audio from " << filename << ": " << e.what();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
mMusic = getStreamRef();
|
||||
mMusic->init([&] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user