DynLib: Posix fixes

This commit is contained in:
Lynix
2020-02-23 02:17:27 +01:00
parent 364122f582
commit 8ace61ce7d
2 changed files with 17 additions and 17 deletions

View File

@@ -8,6 +8,8 @@
#define NAZARA_DYNLIBIMPL_HPP
#include <Nazara/Core/DynLib.hpp>
#include <filesystem>
#include <string>
namespace Nz
{
@@ -19,9 +21,8 @@ namespace Nz
DynLibImpl(DynLib* m_parent);
~DynLibImpl() = default;
DynLibFunc GetSymbol(const String& symbol, String* errorMessage) const;
bool Load(const String& libraryPath, String* errorMessage);
void Unload();
DynLibFunc GetSymbol(const char* symbol, std::string* errorMessage) const;
bool Load(const std::filesystem::path& libraryPath, std::string* errorMessage);
private:
void* m_handle;