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/Algorithm.hpp>
|
||||||
#include <Nazara/Core/DynLib.hpp>
|
#include <Nazara/Core/DynLib.hpp>
|
||||||
#include <Nazara/Core/Error.hpp>
|
#include <Nazara/Core/Error.hpp>
|
||||||
|
#include <Nazara/Core/ErrorFlags.hpp>
|
||||||
#include <Nazara/Core/Log.hpp>
|
#include <Nazara/Core/Log.hpp>
|
||||||
#include <Nazara/Core/StringExt.hpp>
|
#include <Nazara/Core/StringExt.hpp>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
@ -146,10 +147,13 @@ namespace Nz
|
||||||
bool succeeded = false;
|
bool succeeded = false;
|
||||||
for (const char* path : libs)
|
for (const char* path : libs)
|
||||||
{
|
{
|
||||||
|
ErrorFlags errFlags(ErrorMode::Silent);
|
||||||
std::filesystem::path libPath(path);
|
std::filesystem::path libPath(path);
|
||||||
if (!s_library.Load(libPath))
|
if (!s_library.Load(libPath))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
errFlags.SetFlags(0);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// al
|
// al
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue