| 2632 | } |
| 2633 | |
| 2634 | void MainWindow::ipcCli(QDataStream &stream) { |
| 2635 | console(QStringLiteral("[CEmu] Received IPC: command line options\n")); |
| 2636 | CEmuOpts o; |
| 2637 | |
| 2638 | stream >> o.useUnthrottled |
| 2639 | >> o.suppressTestDialog |
| 2640 | >> o.deforceReset |
| 2641 | >> o.forceReloadRom |
| 2642 | >> o.romFile |
| 2643 | >> o.autotesterFile |
| 2644 | >> o.imageFile |
| 2645 | >> o.sendFiles |
| 2646 | >> o.sendArchFiles |
| 2647 | >> o.sendRAMFiles |
| 2648 | >> o.restoreOnOpen |
| 2649 | >> o.speed |
| 2650 | >> o.launchPrgm |
| 2651 | >> o.screenshotFile; |
| 2652 | |
| 2653 | optLoadFiles(o); |
| 2654 | optAttemptLoad(o); |
| 2655 | optSend(o); |
| 2656 | if (o.speed != -1) { |
| 2657 | setEmuSpeed(o.speed); |
| 2658 | } |
| 2659 | if (!o.screenshotFile.isEmpty()) { |
| 2660 | ui->lcd->getImage().save(o.screenshotFile, "PNG", 0); |
| 2661 | } |
| 2662 | } |
| 2663 | |
| 2664 | void MainWindow::ipcCloseConnected() { |
| 2665 | QString idPath = configPath + "/id/"; |