MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / ResolveExecutable

Function ResolveExecutable

launcher/FileSystem.cpp:785–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785QString ResolveExecutable(QString path)
786{
787 if (path.isEmpty()) {
788 return QString();
789 }
790 if (!path.contains('/')) {
791 path = QStandardPaths::findExecutable(path);
792 }
793 QFileInfo pathInfo(path);
794 if (!pathInfo.exists() || !pathInfo.isExecutable()) {
795 return QString();
796 }
797 return pathInfo.absoluteFilePath();
798}
799
800/**
801 * Normalize path

Callers 5

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

Calls 4

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

Tested by

no test coverage detected