MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / SetupCachePathIfNeeded

Function SetupCachePathIfNeeded

src/windows/Main.cpp:104–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void 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
121DiscordInstance* g_pDiscordInstance;
122

Callers 1

WinMainFunction · 0.85

Calls 4

SetProgramNamePathFunction · 0.85
FindBasePathFunction · 0.85
TryThisBasePathFunction · 0.85
SetBasePathFunction · 0.85

Tested by

no test coverage detected