| 35 | } |
| 36 | |
| 37 | void VFSFileResolver::resolve(SkrAsyncServicePriority priority, IOBatchId batch, IORequestId request) SKR_NOEXCEPT |
| 38 | { |
| 39 | auto pPath = io_component<PathSrcComponent>(request.get()); |
| 40 | auto pFile = io_component<FileComponent>(request.get()); |
| 41 | if (pPath && pFile) |
| 42 | { |
| 43 | if (!pFile->dfile && !pFile->file) |
| 44 | { |
| 45 | SKR_ASSERT(pPath->get_vfs()); |
| 46 | pFile->file = skr_vfs_fopen(pPath->get_vfs(), pPath->get_path(), SKR_FM_READ_BINARY, SKR_FILE_CREATION_OPEN_EXISTING); |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | } // namespace io |
| 52 | } // namespace skr |
no test coverage detected