MCPcopy Create free account
hub / github.com/crownengine/crown / set

Method set

3rdparty/bx/src/filepath.cpp:326–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324 }
325
326 void FilePath::set(Dir::Enum _dir)
327 {
328 bool ok = false;
329 char tmp[kMaxFilePath];
330 uint32_t len = BX_COUNTOF(tmp);
331
332 switch (_dir)
333 {
334 case Dir::Current: ok = getCurrentPath(tmp, &len); break;
335 case Dir::Executable: ok = getExecutablePath(tmp, &len); break;
336 case Dir::Home: ok = getHomePath(tmp, &len); break;
337 case Dir::Temp: ok = getTempPath(tmp, &len); break;
338
339 default: break;
340 }
341
342 len = ok ? len : 0;
343
344 set(StringView(tmp, len) );
345 }
346
347 void FilePath::set(const StringView& _filePath)
348 {

Callers

nothing calls this directly

Calls 7

getCurrentPathFunction · 0.85
getExecutablePathFunction · 0.85
getHomePathFunction · 0.85
getTempPathFunction · 0.85
setClass · 0.85
normalizeFilePathFunction · 0.85
StringViewClass · 0.50

Tested by

no test coverage detected