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

Method slotLoad

src/program/ui/RamWatchWindow.cpp:157–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void RamWatchWindow::slotLoad()
158{
159 if (defaultPath.isEmpty()) {
160 defaultPath = context->gamepath.c_str();
161 defaultPath.append(".wch");
162 }
163
164 QString filename = QFileDialog::getOpenFileName(this, tr("Choose a watch file"), defaultPath, tr("watch files (*.wch)"));
165 if (filename.isNull()) {
166 return;
167 }
168
169 defaultPath = filename;
170 QSettings watchSettings(filename, QSettings::IniFormat);
171 watchSettings.setFallbacksEnabled(false);
172
173 ramWatchView->ramWatchModel->loadSettings(watchSettings);
174}

Callers

nothing calls this directly

Calls 4

loadSettingsMethod · 0.80
isEmptyMethod · 0.45
c_strMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected