mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +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["#DL"] = MessageType::ServerHeartbeat;
|
||||||
m_messageTypeMapping["#TM"] = MessageType::TextMessage;
|
m_messageTypeMapping["#TM"] = MessageType::TextMessage;
|
||||||
m_messageTypeMapping["#SB"] = MessageType::PilotClientCom;
|
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)
|
void CFSDClient::handleAtcDataUpdate(const QStringList &tokens)
|
||||||
@@ -1873,7 +1877,9 @@ namespace BlackCore
|
|||||||
case MessageType::ServerHeartbeat:
|
case MessageType::ServerHeartbeat:
|
||||||
case MessageType::ProController:
|
case MessageType::ProController:
|
||||||
case MessageType::ClientIdentification:
|
case MessageType::ClientIdentification:
|
||||||
|
case MessageType::RegistrationInfo:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// handled ones
|
// handled ones
|
||||||
case MessageType::AtcDataUpdate: handleAtcDataUpdate(tokens); break;
|
case MessageType::AtcDataUpdate: handleAtcDataUpdate(tokens); break;
|
||||||
case MessageType::AuthChallenge: handleAuthChallenge(tokens); break;
|
case MessageType::AuthChallenge: handleAuthChallenge(tokens); break;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ enum class MessageType
|
|||||||
Pong,
|
Pong,
|
||||||
ServerError,
|
ServerError,
|
||||||
ServerHeartbeat,
|
ServerHeartbeat,
|
||||||
|
RegistrationInfo, // IVAO only
|
||||||
TextMessage,
|
TextMessage,
|
||||||
PilotClientCom,
|
PilotClientCom,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user