Use experimental/filesystem or filesystem depending on compiler

This commit is contained in:
Zach Hilman
2018-06-23 17:38:23 -04:00
parent ecceac8954
commit ed92a69efc
6 changed files with 38 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
namespace FileSys {
struct RealVfsFile : public VfsFile {
RealVfsFile(const std::filesystem::path& name, std::filesystem::perms perms);
RealVfsFile(const filesystem::path& name, filesystem::perms perms);
std::string GetName() const override;
size_t GetSize() const override;
@@ -25,12 +25,12 @@ struct RealVfsFile : public VfsFile {
private:
FileUtil::IOFile backing;
std::filesystem::path path;
std::filesystem::perms perms;
filesystem::path path;
filesystem::perms perms;
};
struct RealVfsDirectory : public VfsDirectory {
RealVfsDirectory(const std::filesystem::path& path, std::filesystem::perms perms);
RealVfsDirectory(const filesystem::path& path, filesystem::perms perms);
std::vector<std::shared_ptr<VfsFile>> GetFiles() const override;
std::vector<std::shared_ptr<VfsDirectory>> GetSubdirectories() const override;
@@ -46,8 +46,8 @@ struct RealVfsDirectory : public VfsDirectory {
bool Rename(const std::string& name) override;
private:
std::filesystem::path path;
std::filesystem::perms perms;
filesystem::path path;
filesystem::perms perms;
std::vector<std::shared_ptr<VfsFile>> files;
std::vector<std::shared_ptr<VfsDirectory>> subdirectories;
};