MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / cache_dir

Method cache_dir

core/src/config.cc:65–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65path config::cache_dir()
66{
67#if OS_WIN
68 wchar_t path[2048];
69 size_t length = GetEnvironmentVariableW(L"LOCALAPPDATA", path, _countof(path));
70
71 if (length == 0)
72 return league_dir() / "Cache";
73
74 lstrcatW(path, L"\\Riot Games\\League of Legends\\Cache");
75 return path;
76#else
77 // inside the RiotClient folder
78 return "/Users/Shared/Riot Games/League Client/Cache";
79#endif
80}
81
82path config::league_dir()
83{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected