| 111 | } |
| 112 | |
| 113 | std::shared_ptr<IBlob> MediaFileSystem::readFile(const std::filesystem::path & name) |
| 114 | { |
| 115 | for (const auto& fs : m_FileSystems) |
| 116 | if (std::shared_ptr<vfs::IBlob> blob = fs->readFile(name)) |
| 117 | return blob; |
| 118 | return nullptr; |
| 119 | } |
| 120 | |
| 121 | bool MediaFileSystem::writeFile(const std::filesystem::path & name, const void* data, size_t size) |
| 122 | { |