diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.cpp b/deps/ox/src/ox/fs/filesystem/filesystem.cpp index 134b7c18..bcbbad4e 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.cpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.cpp @@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include #include #include "filesystem.hpp" @@ -36,9 +37,9 @@ Error FileSystem::read(const FileAddress &addr, void *buffer, std::size_t size) } } -Result> FileSystem::read(const FileAddress &addr) noexcept { +Result FileSystem::read(const FileAddress &addr) noexcept { oxRequire(s, stat(addr)); - ox::Vector buff(s.size); + Buffer buff(s.size); oxReturnError(read(addr, buff.data(), buff.size())); return ox::move(buff); } diff --git a/deps/ox/src/ox/fs/filesystem/filesystem.hpp b/deps/ox/src/ox/fs/filesystem/filesystem.hpp index 27d75387..6fadfb06 100644 --- a/deps/ox/src/ox/fs/filesystem/filesystem.hpp +++ b/deps/ox/src/ox/fs/filesystem/filesystem.hpp @@ -8,6 +8,8 @@ #pragma once +#include + #include #include #include @@ -42,7 +44,7 @@ class FileSystem { Error read(const FileAddress &addr, void *buffer, std::size_t size) noexcept; - Result> read(const FileAddress &addr) noexcept; + Result read(const FileAddress &addr) noexcept; Error read(const FileAddress &addr, std::size_t readStart, std::size_t readSize, void *buffer, std::size_t *size) noexcept; diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index fbdd6b59..6b4c185e 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -6,6 +6,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include "passthroughfs.hpp" #if defined(OX_HAS_PASSTHROUGHFS)