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

Method optAttemptLoad

gui/qt/mainwindow.cpp:1202–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void MainWindow::optAttemptLoad(CEmuOpts &o) {
1203 if (!fileExists(m_pathRom)) {
1204 if (!runSetup()) {
1205 close();
1206 }
1207 } else {
1208 if (o.restoreOnOpen && !o.imageFile.isEmpty() && fileExists(m_pathImage)) {
1209 emuLoad(EMU_DATA_IMAGE);
1210 } else {
1211 if (o.forceReloadRom) {
1212 emuLoad(EMU_DATA_ROM);
1213 guiDelay(500);
1214 }
1215 }
1216 }
1217}
1218
1219MainWindow::~MainWindow() {
1220 delete m_config;

Callers

nothing calls this directly

Calls 2

fileExistsFunction · 0.85
guiDelayFunction · 0.85

Tested by

no test coverage detected