| 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 | { |
nothing calls this directly
no test coverage detected