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

Function ResolveExecutable

launcher/FileSystem.cpp:260–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260QString ResolveExecutable(QString path)
261{
262 if (path.isEmpty())
263 {
264 return QString();
265 }
266 if(!path.contains('/'))
267 {
268 path = QStandardPaths::findExecutable(path);
269 }
270 QFileInfo pathInfo(path);
271 if(!pathInfo.exists() || !pathInfo.isExecutable())
272 {
273 return QString();
274 }
275 return pathInfo.absoluteFilePath();
276}
277
278/**
279 * Normalize path

Callers 6

createSetupWizardMethod · 0.85
executeTaskMethod · 0.85
checkJavaPathOnEditMethod · 0.85
checkJavaPathMethod · 0.85
executeTaskMethod · 0.85
executeTaskMethod · 0.85

Calls 4

QStringClass · 0.85
isEmptyMethod · 0.80
existsMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected