mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Ref T103, executable file path moved to CDirectoryUtils::executableFilePath
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3245ff4ef4
commit
caf358401f
@@ -50,6 +50,13 @@ namespace BlackConfig
|
||||
return s;
|
||||
}
|
||||
|
||||
bool CBuildConfig::isKnownExecutableName(const QString &executable)
|
||||
{
|
||||
return executable == CBuildConfig::swiftCoreExecutableName() ||
|
||||
executable == CBuildConfig::swiftDataExecutableName() ||
|
||||
executable == CBuildConfig::swiftGuiExecutableName();
|
||||
}
|
||||
|
||||
bool CBuildConfig::isRunningOnWindowsNtPlatform()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace BlackConfig
|
||||
{
|
||||
//! Build configuration
|
||||
//! Build configuration, also used to secure VATSIM key
|
||||
class CBuildConfig
|
||||
{
|
||||
public:
|
||||
@@ -101,6 +101,9 @@ namespace BlackConfig
|
||||
//! Executable name for swift data, no(!) appendix
|
||||
static const QString &swiftDataExecutableName();
|
||||
|
||||
//! Known executable
|
||||
static bool isKnownExecutableName(const QString &executable);
|
||||
|
||||
//! End of lifetime
|
||||
static const QDateTime &getEol(); // defined in buildconfig_gen.cpp.in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user