MCPcopy Create free account
hub / github.com/MultiMC/Launcher / javaArgsWereBad

Method javaArgsWereBad

launcher/JavaCommon.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
39{
40 auto htmlError = result.errorLog;
41 QString text;
42 htmlError.replace('\n', "<br />");
43 text += QObject::tr("The specified java binary didn't work with the arguments you provided:<br />");
44 text += QString("<font color=\"red\">%1</font>").arg(htmlError);
45 CustomMessageBox::selectable(parent, QObject::tr("Java test failure"), text, QMessageBox::Warning)->show();
46}
47
48void JavaCommon::javaBinaryWasBad(QWidget *parent, JavaCheckResult result)
49{

Callers

nothing calls this directly

Calls 3

QStringClass · 0.85
selectableFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected