Audio: Don't show errors when trying to load OpenAL library

This commit is contained in:
Jérôme Leclercq 2021-06-05 19:07:23 +02:00
parent e26c1f8e68
commit 20e982f5f2
1 changed files with 4 additions and 0 deletions

View File

@ -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