| 28 | bool Direct::has(std::string_view path) { return _files.contains(normalizePath(path)); } |
| 29 | |
| 30 | InputStream Direct::load(std::string_view path) { |
| 31 | auto fb = std::make_unique<std::filebuf>(); |
| 32 | fb->open(_basePath / _files.at(normalizePath(path)), std::ios_base::binary | std::ios_base::in); |
| 33 | |
| 34 | return InputStream(std::move(fb)); |
| 35 | } |
| 36 | |
| 37 | } // namespace Abyss::FileSystem |
nothing calls this directly
no test coverage detected