| 352 | } |
| 353 | |
| 354 | std::string Doom3FileSystem::findRoot(const std::string& name) |
| 355 | { |
| 356 | for (const auto& descriptor : _archives) |
| 357 | { |
| 358 | if (!descriptor.is_pakfile && path_equal_n(name.c_str(), descriptor.name.c_str(), descriptor.name.size())) |
| 359 | { |
| 360 | return descriptor.name; |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | return std::string(); |
| 365 | } |
| 366 | |
| 367 | void Doom3FileSystem::initPakFile(const std::string& filename) |
| 368 | { |
no test coverage detected