| 63 | } |
| 64 | |
| 65 | path 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 | |
| 82 | path config::league_dir() |
| 83 | { |
nothing calls this directly
no outgoing calls
no test coverage detected