| 102 | } |
| 103 | |
| 104 | void SetupCachePathIfNeeded() |
| 105 | { |
| 106 | SetProgramNamePath("DiscordMessenger"); |
| 107 | FindBasePath(); |
| 108 | |
| 109 | if (TryThisBasePath()) |
| 110 | return; |
| 111 | |
| 112 | // Ok, try the SFN version |
| 113 | SetProgramNamePath("Discordm"); |
| 114 | if (TryThisBasePath()) |
| 115 | return; |
| 116 | |
| 117 | MessageBox(g_Hwnd, TmGetTString(IDS_NO_CACHE_DIR), TmGetTString(IDS_NON_CRITICAL_ERROR), MB_OK | MB_ICONERROR); |
| 118 | SetBasePath("."); |
| 119 | } |
| 120 | |
| 121 | DiscordInstance* g_pDiscordInstance; |
| 122 |
no test coverage detected