| 360 | } |
| 361 | |
| 362 | void EmulatorController::start() { |
| 363 | m_re.reset(); |
| 364 | m_screen = QImage(); |
| 365 | stopMovie(); |
| 366 | if (!m_initialState.isEmpty()) { |
| 367 | m_re.unserialize(static_cast<void*>(m_initialState.data()), m_initialState.size()); |
| 368 | } |
| 369 | m_data->updateRam(); |
| 370 | m_data->updateRam(); |
| 371 | m_scen->restart(); |
| 372 | m_running = true; |
| 373 | schedule(); |
| 374 | emit started(); |
| 375 | } |
| 376 | |
| 377 | void EmulatorController::stop() { |
| 378 | m_running = false; |
no test coverage detected