mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
[FSD] Ignore IVAO RegistrationInfo
This commit is contained in:
committed by
Mat Sutcliffe
parent
5eaa8db1a2
commit
f56adb7af4
@@ -882,6 +882,10 @@ namespace BlackCore
|
||||
m_messageTypeMapping["#DL"] = MessageType::ServerHeartbeat;
|
||||
m_messageTypeMapping["#TM"] = MessageType::TextMessage;
|
||||
m_messageTypeMapping["#SB"] = MessageType::PilotClientCom;
|
||||
|
||||
// IVAO only
|
||||
// Ref: https://github.com/DemonRem/X-IvAP/blob/1b0a14880532a0f5c8fe84be44e462c6892a5596/src/XIvAp/FSDprotocol.h
|
||||
m_messageTypeMapping["!R"] = MessageType::RegistrationInfo;
|
||||
}
|
||||
|
||||
void CFSDClient::handleAtcDataUpdate(const QStringList &tokens)
|
||||
@@ -1873,7 +1877,9 @@ namespace BlackCore
|
||||
case MessageType::ServerHeartbeat:
|
||||
case MessageType::ProController:
|
||||
case MessageType::ClientIdentification:
|
||||
case MessageType::RegistrationInfo:
|
||||
break;
|
||||
|
||||
// handled ones
|
||||
case MessageType::AtcDataUpdate: handleAtcDataUpdate(tokens); break;
|
||||
case MessageType::AuthChallenge: handleAuthChallenge(tokens); break;
|
||||
|
||||
@@ -42,6 +42,7 @@ enum class MessageType
|
||||
Pong,
|
||||
ServerError,
|
||||
ServerHeartbeat,
|
||||
RegistrationInfo, // IVAO only
|
||||
TextMessage,
|
||||
PilotClientCom,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user