| 64 | } |
| 65 | |
| 66 | void FindBasePath() |
| 67 | { |
| 68 | TCHAR pwStr[MAX_PATH]; |
| 69 | pwStr[0] = 0; |
| 70 | LPCTSTR p1 = NULL, p2 = NULL; |
| 71 | |
| 72 | if (SUCCEEDED(ri::SHGetFolderPath(g_Hwnd, CSIDL_APPDATA, NULL, 0, pwStr))) |
| 73 | { |
| 74 | SetBasePath(MakeStringFromTString(pwStr)); |
| 75 | } |
| 76 | else |
| 77 | { |
| 78 | MessageBox(g_Hwnd, TmGetTString(IDS_NO_APPDATA), TmGetTString(IDS_NON_CRITICAL_ERROR), MB_OK | MB_ICONERROR); |
| 79 | SetBasePath("."); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | bool TryThisBasePath() |
| 84 | { |
no test coverage detected