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

Method load

gui/qt/emuthread.cpp:385–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void EmuThread::load(emu_data_t fileType, const QString &filePath) {
386
387 /* if loading an image or rom, we need to restart emulation */
388 if (fileType == EMU_DATA_IMAGE || fileType == EMU_DATA_ROM) {
389 setTerminationEnabled();
390 stop();
391
392 emit loaded(emu_load(fileType, filePath.toStdString().c_str()), fileType);
393 } else if (fileType == EMU_DATA_RAM) {
394 m_loadPath = filePath;
395 m_loadType = fileType;
396 req(RequestLoad);
397 }
398}
399
400void EmuThread::stop() {
401 // Need to run events to allow queued slots to be processed during exit

Callers 5

MainWindowMethod · 0.80
translateSwitchMethod · 0.80
emuCheckMethod · 0.80
emuLoadMethod · 0.80
handleResetMethod · 0.80

Calls 1

emu_loadFunction · 0.85

Tested by

no test coverage detected