| 224 | } |
| 225 | |
| 226 | std::wstring AppWindow::GetLocalPath(std::wstring relativePath, bool keep_exe_path) |
| 227 | { |
| 228 | WCHAR rawPath[MAX_PATH]; |
| 229 | GetModuleFileNameW(hInst, rawPath, MAX_PATH); |
| 230 | std::wstring path(rawPath); |
| 231 | if (keep_exe_path) |
| 232 | { |
| 233 | path.append(relativePath); |
| 234 | } |
| 235 | else |
| 236 | { |
| 237 | std::size_t index = path.find_last_of(L"\\") + 1; |
| 238 | path.replace(index, path.length(), relativePath); |
| 239 | } |
| 240 | return path; |
| 241 | } |
nothing calls this directly
no outgoing calls
no test coverage detected