| 39 | } |
| 40 | |
| 41 | bool 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 | |
| 56 | bool EventsConfiguration::Load(PCWSTR path, bool clean) { |
| 57 | IniFile file(path); |
nothing calls this directly
no test coverage detected