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

Function ResolveExecutable

launcher/FileSystem.cpp:763–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761}
762
763QString ResolveExecutable(QString path)
764{
765 if (path.isEmpty()) {
766 return QString();
767 }
768 if (!path.contains('/')) {
769 path = QStandardPaths::findExecutable(path);
770 }
771 QFileInfo pathInfo(path);
772 if (!pathInfo.exists() || !pathInfo.isExecutable()) {
773 return QString();
774 }
775 return pathInfo.absoluteFilePath();
776}
777
778/**
779 * Normalize path

Callers 5

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

Calls 4

QStringClass · 0.70
isEmptyMethod · 0.45
containsMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected