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

Method javaArgsWereBad

launcher/JavaCommon.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
50{
51 auto htmlError = result.errorLog;
52 QString text;
53 htmlError.replace('\n', "<br />");
54 text += QObject::tr("The specified java binary didn't work with the arguments you provided:<br />");
55 text += QString("<font color=\"red\">%1</font>").arg(htmlError);
56 CustomMessageBox::selectable(parent, QObject::tr("Java test failure"), text, QMessageBox::Warning)->show();
57}
58
59void JavaCommon::javaBinaryWasBad(QWidget *parent, JavaCheckResult result)
60{

Callers

nothing calls this directly

Calls 3

QStringClass · 0.85
selectableFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected