| 190 | } |
| 191 | |
| 192 | void PointerScanWindow::slotSave() |
| 193 | { |
| 194 | if (defaultPath.isEmpty()) { |
| 195 | defaultPath = context->gamepath.c_str(); |
| 196 | defaultPath.append(".pm"); |
| 197 | } |
| 198 | |
| 199 | QString filename = QFileDialog::getSaveFileName(this, tr("Save pointermap"), defaultPath, tr("pointermap files (*.pm)")); |
| 200 | |
| 201 | if (filename.isNull()) |
| 202 | return; |
| 203 | |
| 204 | defaultPath = filename; |
| 205 | pointerScanModel->saveChains(filename.toStdString()); |
| 206 | } |
| 207 | |
| 208 | void PointerScanWindow::slotLoad() |
| 209 | { |
nothing calls this directly
no test coverage detected