| 42 | |
| 43 | private: |
| 44 | void Save() |
| 45 | { |
| 46 | auto formatted = FormatString( |
| 47 | L"\xfeff|PROCESS|%s|FILTER|%s|END|\r\n", |
| 48 | GetModuleFilename(GetSelectedProcessId()).value_or(FormatString(L"Error getting name of process 0x%X", GetSelectedProcessId())), |
| 49 | S(ui.regexEdit->text()) |
| 50 | ); |
| 51 | std::ofstream(REGEX_SAVE_FILE, std::ios::binary | std::ios::app).write((const char*)formatted.c_str(), formatted.size() * sizeof(wchar_t)); |
| 52 | } |
| 53 | |
| 54 | Ui::FilterWindow ui; |
| 55 | } window; |
nothing calls this directly
no test coverage detected