Minor and forgotten stuff
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Nz
|
||||
}
|
||||
|
||||
std::filesystem::path path = pluginPath;
|
||||
if (appendExtension && path.extension() == NAZARA_DYNLIB_EXTENSION)
|
||||
if (appendExtension && path.extension() != NAZARA_DYNLIB_EXTENSION)
|
||||
path += NAZARA_DYNLIB_EXTENSION;
|
||||
|
||||
bool exists = false;
|
||||
@@ -159,7 +159,7 @@ namespace Nz
|
||||
return false;
|
||||
}
|
||||
|
||||
std::filesystem::path canonicalPath = std::filesystem::canonical(pluginPath);
|
||||
std::filesystem::path canonicalPath = std::filesystem::canonical(path);
|
||||
s_plugins[canonicalPath] = std::move(library);
|
||||
|
||||
return true;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <Nazara/VulkanRenderer/VkRenderWindow.hpp>
|
||||
#include <Nazara/VulkanRenderer/Wrapper/Loader.hpp>
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
#include <Nazara/VulkanRenderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
@@ -53,12 +54,12 @@ namespace Nz
|
||||
return RenderAPI::Vulkan;
|
||||
}
|
||||
|
||||
String VulkanRenderer::QueryAPIString() const
|
||||
std::string VulkanRenderer::QueryAPIString() const
|
||||
{
|
||||
StringStream ss;
|
||||
std::ostringstream ss;
|
||||
ss << "Vulkan renderer " << VK_VERSION_MAJOR(APIVersion) << '.' << VK_VERSION_MINOR(APIVersion) << '.' << VK_VERSION_PATCH(APIVersion);
|
||||
|
||||
return ss;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
UInt32 VulkanRenderer::QueryAPIVersion() const
|
||||
|
||||
Reference in New Issue
Block a user