0x004416B5
| 154 | |
| 155 | // 0x004416B5 |
| 156 | fs::path getPath(PathId id) |
| 157 | { |
| 158 | fs::path result = getPathNoWarning(id); |
| 159 | if (!fs::exists(result)) |
| 160 | { |
| 161 | #ifndef _WIN32 |
| 162 | auto similarResult = findSimilarFile(result); |
| 163 | if (similarResult.empty()) |
| 164 | { |
| 165 | Logging::error("Warning: file {} could not be found", result.u8string()); |
| 166 | } |
| 167 | else |
| 168 | { |
| 169 | result = similarResult; |
| 170 | } |
| 171 | #else |
| 172 | Logging::error("Warning: file {} could not be found", result.u8string()); |
| 173 | #endif |
| 174 | } |
| 175 | return result; |
| 176 | } |
| 177 | |
| 178 | static fs::path getDefaultPathNoWarning(PathId id) |
| 179 | { |
no test coverage detected