Core: Move platform-specific code to PlatformImpl namespace

This commit is contained in:
SirLynix
2024-01-22 16:49:21 +01:00
parent 3557040246
commit 373309d6d9
22 changed files with 45 additions and 42 deletions

View File

@@ -28,7 +28,10 @@ namespace Nz
{
using DynLibFunc = void (*)(void); // "Generic" type of pointer to function
class DynLibImpl;
namespace PlatformImpl
{
class DynLibImpl;
}
class NAZARA_CORE_API DynLib
{
@@ -51,7 +54,7 @@ namespace Nz
private:
mutable std::string m_lastError;
std::unique_ptr<DynLibImpl> m_impl;
std::unique_ptr<PlatformImpl::DynLibImpl> m_impl;
};
}

View File

@@ -19,7 +19,10 @@
namespace Nz
{
class FileImpl;
namespace PlatformImpl
{
class FileImpl;
}
class NAZARA_CORE_API File : public Stream
{
@@ -70,7 +73,7 @@ namespace Nz
std::size_t WriteBlock(const void* buffer, std::size_t size) override;
std::filesystem::path m_filePath;
std::unique_ptr<FileImpl> m_impl;
std::unique_ptr<PlatformImpl::FileImpl> m_impl;
};
NAZARA_CORE_API bool HashAppend(AbstractHash& hash, const File& originalFile);