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

Function ResolveExecutable

launcher/FileSystem.cpp:286–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286QString ResolveExecutable(QString path)
287{
288 if (path.isEmpty()) {
289 return QString();
290 }
291 if (!path.contains('/')) {
292 path = QStandardPaths::findExecutable(path);
293 }
294 QFileInfo pathInfo(path);
295 if (!pathInfo.exists() || !pathInfo.isExecutable()) {
296 return QString();
297 }
298 return pathInfo.absoluteFilePath();
299}
300
301/**
302 * 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