| 1200 | } |
| 1201 | |
| 1202 | void 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 | |
| 1219 | MainWindow::~MainWindow() { |
| 1220 | delete m_config; |
nothing calls this directly
no test coverage detected