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

Method ipcSetId

gui/qt/mainwindow.cpp:2726–2737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2724}
2725
2726void MainWindow::ipcSetId() {
2727 bool ok = true;
2728 QString text = QInputDialog::getText(this, tr("CEmu Change ID"), tr("New ID:"), QLineEdit::Normal, opts.idString, &ok);
2729 if (ok && !text.isEmpty() && text != opts.idString) {
2730 if (!InterCom::idOpen(text)) {
2731 com.idClose();
2732 com.ipcSetup(opts.idString = text, opts.pidString);
2733 console(QStringLiteral("[CEmu] Initialized Server [") + opts.idString + QStringLiteral(" | ") + com.getServerName() + QStringLiteral("]\n"));
2734 setWindowTitle(QStringLiteral("CEmu | ") + opts.idString);
2735 }
2736 }
2737}
2738
2739void MainWindow::ipcSpawn() {
2740 QStringList arguments;

Callers

nothing calls this directly

Calls 3

idCloseMethod · 0.80
getServerNameMethod · 0.80
ipcSetupMethod · 0.45

Tested by

no test coverage detected