VulkanRenderer/Loader: Don't rely on std::filesystem::path constructor taking a const char*

This commit is contained in:
SirLynix 2024-02-06 17:06:39 +01:00
parent 993722ed0b
commit b889c992ea
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include <Nazara/Core/Error.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/VulkanRenderer/Utils.hpp>
#include <NazaraUtils/PathUtils.hpp>
#include <Nazara/VulkanRenderer/Debug.hpp>
namespace Nz
@ -88,7 +89,7 @@ namespace Nz
{
ErrorFlags errorFlags(ErrorMode::Silent, ErrorMode::ThrowException);
if (!s_vulkanLib.Load(libname))
if (!s_vulkanLib.Load(Utf8Path(libname)))
continue;
Error::ApplyFlags({}, ErrorMode::Silent);