MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / resolve

Method resolve

modules/engine/runtime/src/io/common/io_resolver.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void 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

Callers 1

dispatchMethod · 0.45

Calls 4

skr_vfs_fopenFunction · 0.85
get_vfsMethod · 0.80
getMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected