MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / isExecutableFilename

Function isExecutableFilename

src/modinfodialog.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool isExecutableFilename(const QString& filename)
50{
51 static const std::set<QString> exeExtensions = {"exe", "cmd", "bat"};
52
53 const auto ext = QFileInfo(filename).suffix().toLower();
54
55 return exeExtensions.contains(ext);
56}
57
58bool canRunFile(bool isArchive, const QString& filename)
59{

Callers 2

canRunFileFunction · 0.85
canOpenFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected