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

Method Load

WinArk/FilterConfiguration.cpp:66–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool FilterConfiguration::Load(PCWSTR path) {
67 IniFile file(path);
68 CString text;
69 for (int i = 1;; i++) {
70 text.Format(L"Filter%d", i);
71 auto name = file.ReadString(text, L"Type");
72 if (name.IsEmpty())
73 break;
74 FilterDescription desc;
75 desc.Name = name;
76 desc.Action = (FilterAction)file.ReadInt(text, L"Action");
77 desc.DefaultAction = (FilterAction)file.ReadInt(text, L"DefaultAction");
78 desc.Enabled = file.ReadBool(text, L"Enabled", true);
79 desc.Parameters = file.ReadString(text, L"Parameters");
80 }
81 return true;
82}

Callers

nothing calls this directly

Calls 4

ReadStringMethod · 0.80
IsEmptyMethod · 0.80
ReadIntMethod · 0.80
ReadBoolMethod · 0.80

Tested by

no test coverage detected