mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[FSD] Style and comments
This commit is contained in:
committed by
Mat Sutcliffe
parent
22c0f57667
commit
991ba5ede8
@@ -40,7 +40,7 @@ namespace BlackCore
|
||||
{
|
||||
BlackMisc::CLogMessage(static_cast<ClientResponse *>(nullptr)).warning(u"Wrong number of arguments.");
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
QStringList responseData;
|
||||
if (tokens.size() > 3) { responseData = tokens.mid(3); }
|
||||
|
||||
@@ -907,6 +907,10 @@ namespace BlackCore
|
||||
// IVAO only
|
||||
// Ref: https://github.com/DemonRem/X-IvAP/blob/1b0a14880532a0f5c8fe84be44e462c6892a5596/src/XIvAp/FSDprotocol.h
|
||||
m_messageTypeMapping["!R"] = MessageType::RegistrationInfo;
|
||||
|
||||
// IVAO parts
|
||||
// https://discordapp.com/channels/539048679160676382/695961646992195644/707915838845485187
|
||||
// https://dev.swift-project.org/w/knowhow/simandinterpolation/ivaoparts/
|
||||
}
|
||||
|
||||
void CFSDClient::handleAtcDataUpdate(const QStringList &tokens)
|
||||
|
||||
@@ -285,6 +285,7 @@ namespace BlackCore
|
||||
if (str.isEmpty()) return ClientQueryType::Unknown;
|
||||
|
||||
// valid queries
|
||||
// second part of a $CQ:, e.g. $CQ:DI, $CQ:ATC
|
||||
if (str == "ATC") return ClientQueryType::IsValidATC;
|
||||
if (str == "CAPS") return ClientQueryType::Capabilities;
|
||||
if (str == "C?") return ClientQueryType::Com1Freq;
|
||||
|
||||
Reference in New Issue
Block a user