MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotSave

Method slotSave

src/program/ui/PointerScanWindow.cpp:192–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void 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
208void PointerScanWindow::slotLoad()
209{

Callers

nothing calls this directly

Calls 4

saveChainsMethod · 0.80
isEmptyMethod · 0.45
c_strMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected