MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / resolve

Method resolve

Engine/source/platformWin32/winVolume.cpp:256–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256FileNodeRef Win32FileSystem::resolve(const Path& path)
257{
258 String file = _BuildFileName(mVolume,path);
259
260 WIN32_FIND_DATAW info;
261 HANDLE handle = ::FindFirstFileW(PathToOS(file).utf16(), &info);
262 ::FindClose(handle);
263 if (handle != INVALID_HANDLE_VALUE)
264 {
265#ifdef TORQUE_DEBUG
266 verifyCompatibility(path, info);
267#endif
268 if (S_ISREG(info.dwFileAttributes))
269 return new Win32File(path,file);
270 if (S_ISDIR(info.dwFileAttributes))
271 return new Win32Directory(path,file);
272 }
273 return 0;
274}
275
276FileNodeRef Win32FileSystem::create(const Path& path, FileNode::Mode mode)
277{

Callers

nothing calls this directly

Calls 3

_BuildFileNameFunction · 0.85
PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected