mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
build: Add ifdef to disable VATSIM build
This commit is contained in:
@@ -298,6 +298,7 @@ bool CSwiftLauncher::setSwiftDataExecutable()
|
||||
m_executable = CSwiftDirectories::executableFilePath(CBuildConfig::swiftDataExecutableName());
|
||||
|
||||
QStringList fsdArgs;
|
||||
#ifdef SWIFT_VATSIM_SUPPORT
|
||||
int id = 0;
|
||||
QString key;
|
||||
if (IContextNetwork::getCmdLineClientIdAndKey(id, key))
|
||||
@@ -306,6 +307,7 @@ bool CSwiftLauncher::setSwiftDataExecutable()
|
||||
fsdArgs << "--idAndKey";
|
||||
fsdArgs << sApp->getParserValue("clientIdAndKey"); // as typed in
|
||||
}
|
||||
#endif
|
||||
|
||||
m_executableArgs = sGui->argumentsJoined({}, fsdArgs);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user