| 231 | } |
| 232 | |
| 233 | void switch_debug_logging() { |
| 234 | auto mut = settings->modify(SettingsModificationStyle::ignore_file_errors); |
| 235 | mut->data.write_debug_log = !mut->data.write_debug_log; |
| 236 | if (mut->data.write_debug_log) { |
| 237 | WinApi::delete_file(get_debug_log_path().c_str()); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | void open_debug_log() { |
| 242 | ShellExecute(nullptr, L"open", get_debug_log_path().c_str(), nullptr, nullptr, SW_SHOW); |
nothing calls this directly
no test coverage detected