Audio: Don't show errors when trying to load OpenAL library
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user