MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / javaArgsWereBad

Method javaArgsWereBad

launcher/JavaCommon.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
87{
88 auto htmlError = result.errorLog;
89 QString text;
90 htmlError.replace('\n', "<br />");
91 text += QObject::tr("The specified Java binary didn't work with the arguments you provided:<br />");
92 text += QString("<font color=\"red\">%1</font>").arg(htmlError);
93 CustomMessageBox::selectable(parent, QObject::tr("Java test failure"), text, QMessageBox::Warning)->show();
94}
95
96void JavaCommon::javaBinaryWasBad(QWidget *parent, JavaCheckResult result)
97{

Callers

nothing calls this directly

Calls 4

QStringClass · 0.85
selectableFunction · 0.85
showMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected