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

Method ipcSetup

gui/qt/mainwindow.cpp:2601–2632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2599// ------------------------------------------------
2600
2601bool MainWindow::ipcSetup() {
2602 // start the main communictions
2603 if (com.ipcSetup(opts.idString, opts.pidString)) {
2604 return true;
2605 }
2606
2607 // if failure, then send a command to the other process with the command options
2608 QByteArray byteArray;
2609 QDataStream stream(&byteArray, QIODevice::WriteOnly);
2610 stream.setVersion(QDataStream::Qt_5_5);
2611 unsigned int type = IPC_CLI;
2612
2613 stream << type
2614 << opts.useUnthrottled
2615 << opts.suppressTestDialog
2616 << opts.deforceReset
2617 << opts.forceReloadRom
2618 << opts.romFile
2619 << opts.autotesterFile
2620 << opts.imageFile
2621 << opts.sendFiles
2622 << opts.sendArchFiles
2623 << opts.sendRAMFiles
2624 << opts.restoreOnOpen
2625 << opts.speed
2626 << opts.launchPrgm
2627 << opts.screenshotFile;
2628
2629 // blocking call
2630 com.send(byteArray);
2631 return false;
2632}
2633
2634void MainWindow::ipcCli(QDataStream &stream) {
2635 console(QStringLiteral("[CEmu] Received IPC: command line options\n"));

Callers 1

ipcSetIdMethod · 0.45

Calls 2

setVersionMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected