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

Method Save

WinArk/EventConfiguration.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool EventsConfiguration::Save(PCWSTR path) {
42 ::DeleteFile(path);
43 IniFile file(path);
44
45 for (auto& cat : GetCategories()) {
46 CString text;
47 for (auto oc : cat.Opcodes)
48 text.Format(L"%s%d", (PCWSTR)text, oc);
49 if (!file.WriteString(L"Events", cat.Name.c_str(), text))
50 return false;
51 }
52
53 return true;
54}
55
56bool EventsConfiguration::Load(PCWSTR path, bool clean) {
57 IniFile file(path);

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.45

Tested by

no test coverage detected