| 64 | } |
| 65 | |
| 66 | bool 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 | } |
nothing calls this directly
no test coverage detected