MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / SaveToFile

Method SaveToFile

WinArk/LocationManager.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool 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
94bool LocationManager::Load(PCWSTR path) {
95 WCHAR fullpath[MAX_PATH];

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.45

Tested by

no test coverage detected