| 80 | } |
| 81 | |
| 82 | bool LocationManager::SaveToFile(PCWSTR path) const { |
| 83 | path = GetPath(path); |
| 84 | if (!path) |
| 85 | return false; |
| 86 | |
| 87 | IniFile file(path); |
| 88 | for (auto& [name, target] : _items) { |
| 89 | file.WriteString(L"Location", name, target); |
| 90 | } |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | bool LocationManager::Load(PCWSTR path) { |
| 95 | WCHAR fullpath[MAX_PATH]; |
nothing calls this directly
no test coverage detected