| 400 | } |
| 401 | |
| 402 | std::filesystem::path GetLocalPath(std::string subfolder) |
| 403 | { |
| 404 | static std::filesystem::path oneChoice; |
| 405 | // if( oneChoice.empty() ) |
| 406 | { |
| 407 | std::filesystem::path candidateA = donut::app::GetDirectoryWithExecutable() / subfolder; |
| 408 | std::filesystem::path candidateB = donut::app::GetDirectoryWithExecutable().parent_path() / subfolder; |
| 409 | if (std::filesystem::exists(candidateA)) |
| 410 | oneChoice = candidateA; |
| 411 | else |
| 412 | oneChoice = candidateB; |
| 413 | } |
| 414 | return oneChoice; |
| 415 | } |
| 416 | |
| 417 | std::string StringLoadFromFile( const std::filesystem::path & filePath ) |
| 418 | { |
no outgoing calls
no test coverage detected