| 22 | }; |
| 23 | |
| 24 | class MultiFileLoader final : public FileLoader { |
| 25 | std::vector<std::unique_ptr<Provider>> _providers; |
| 26 | absl::flat_hash_map<std::string, int /* index in _providers */> _cacheWhere; |
| 27 | std::mutex _mutex; |
| 28 | |
| 29 | public: |
| 30 | ~MultiFileLoader() override = default; |
| 31 | [[nodiscard]] InputStream loadFile(std::string_view path) override; |
| 32 | [[nodiscard]] bool fileExists(std::string_view path) override; |
| 33 | void addProvider(std::unique_ptr<Provider> provider); |
| 34 | }; |
| 35 | |
| 36 | } // namespace Abyss::FileSystem |
nothing calls this directly
no outgoing calls
no test coverage detected