Audio: Don't show errors when trying to load OpenAL library
This commit is contained in:
parent
e26c1f8e68
commit
20e982f5f2
|
|
@ -6,6 +6,7 @@
|
|||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <Nazara/Core/DynLib.hpp>
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Nazara/Core/ErrorFlags.hpp>
|
||||
#include <Nazara/Core/Log.hpp>
|
||||
#include <Nazara/Core/StringExt.hpp>
|
||||
#include <cstring>
|
||||
|
|
@ -146,10 +147,13 @@ namespace Nz
|
|||
bool succeeded = false;
|
||||
for (const char* path : libs)
|
||||
{
|
||||
ErrorFlags errFlags(ErrorMode::Silent);
|
||||
std::filesystem::path libPath(path);
|
||||
if (!s_library.Load(libPath))
|
||||
continue;
|
||||
|
||||
errFlags.SetFlags(0);
|
||||
|
||||
try
|
||||
{
|
||||
// al
|
||||
|
|
|
|||
Loading…
Reference in New Issue