MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getNewFileInfo

Method getNewFileInfo

src/simulate/fs_file_info.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 das::FileInfo * FsFileAccess::getNewFileInfo(const das::string & fileName) {
123 if ( locked ) return nullptr;
124 for ( auto & fs : fileSystems ) {
125 if ( auto info = fs.first->tryOpenFile(fileName) ) {
126 return setFileInfo(fileName, FileInfoPtr(info));
127 }
128 }
129 return nullptr;
130 }
131
132 bool FsFileAccess::addFsRoot ( const string & mod, const string & path ) {
133 auto & eroots = extraRoots[mod];

Callers

nothing calls this directly

Calls 1

tryOpenFileMethod · 0.80

Tested by

no test coverage detected