MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / bootImageCheck

Method bootImageCheck

gui/qt/settings.cpp:216–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216bool MainWindow::bootImageCheck() {
217 QDir dir = appDir();
218 QDirIterator dirIt(dir, QDirIterator::NoIteratorFlags);
219 while (dirIt.hasNext()) {
220 dirIt.next();
221 QString dirItFile = dirIt.filePath();
222 if (QFileInfo(dirItFile).isFile()) {
223 if (QFileInfo(dirItFile).suffix() == QStringLiteral("cemu")) {
224 if (!m_loadedBootImage) {
225 m_loadedBootImage = bootImageImport(dirItFile);
226 }
227 QFile(dirItFile).remove();
228 }
229 }
230 }
231 return m_loadedBootImage;
232}
233
234bool MainWindow::bootImageImport(const QString &bootImagePath) {
235 QString newConfigPath = configPath + SETTING_DEFAULT_CONFIG_FILE;

Callers

nothing calls this directly

Calls 2

appDirFunction · 0.85
nextMethod · 0.80

Tested by

no test coverage detected