[FSD] Ignore IVAO RegistrationInfo

This commit is contained in:
Klaus Basan
2020-04-01 20:56:04 +02:00
committed by Mat Sutcliffe
parent 5eaa8db1a2
commit f56adb7af4
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -42,6 +42,7 @@ enum class MessageType
Pong, Pong,
ServerError, ServerError,
ServerHeartbeat, ServerHeartbeat,
RegistrationInfo, // IVAO only
TextMessage, TextMessage,
PilotClientCom, PilotClientCom,
}; };