mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Bump Vatsim protocol version number
This commit is contained in:
@@ -149,7 +149,7 @@ namespace BlackCore::Fsd
|
|||||||
const QString codecName(server.getFsdSetup().getTextCodec());
|
const QString codecName(server.getFsdSetup().getTextCodec());
|
||||||
QTextCodec *textCodec = QTextCodec::codecForName(codecName.toLocal8Bit());
|
QTextCodec *textCodec = QTextCodec::codecForName(codecName.toLocal8Bit());
|
||||||
if (!textCodec) { textCodec = QTextCodec::codecForName("utf-8"); }
|
if (!textCodec) { textCodec = QTextCodec::codecForName("utf-8"); }
|
||||||
const int protocolRev = (server.getServerType() == CServer::FSDServerVatsim) ? PROTOCOL_REVISION_VATSIM_AUTH : PROTOCOL_REVISION_CLASSIC;
|
const int protocolRev = (server.getServerType() == CServer::FSDServerVatsim) ? PROTOCOL_REVISION_VATSIM_VELOCITY : PROTOCOL_REVISION_CLASSIC;
|
||||||
|
|
||||||
QWriteLocker l(&m_lockUserClientBuffered);
|
QWriteLocker l(&m_lockUserClientBuffered);
|
||||||
m_server = server;
|
m_server = server;
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
#define PROTOCOL_REVISION_CLASSIC 9
|
#define PROTOCOL_REVISION_CLASSIC 9
|
||||||
#define PROTOCOL_REVISION_VATSIM_ATC 10
|
#define PROTOCOL_REVISION_VATSIM_ATC 10
|
||||||
#define PROTOCOL_REVISION_VATSIM_AUTH 100
|
#define PROTOCOL_REVISION_VATSIM_AUTH 100
|
||||||
|
#define PROTOCOL_REVISION_VATSIM_VELOCITY 101
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
namespace BlackFsdTest { class CTestFSDClient; }
|
namespace BlackFsdTest { class CTestFSDClient; }
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ namespace BlackFsdTest
|
|||||||
QList<QVariant> arguments = spy.takeFirst();
|
QList<QVariant> arguments = spy.takeFirst();
|
||||||
QCOMPARE(arguments.size(), 1);
|
QCOMPARE(arguments.size(), 1);
|
||||||
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
|
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
|
||||||
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#APABCD:SERVER:1234567:123456:1:100:16:Test User");
|
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#APABCD:SERVER:1234567:123456:1:101:16:Test User");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTestFSDClient::testSendAtcLogin()
|
void CTestFSDClient::testSendAtcLogin()
|
||||||
@@ -393,7 +393,7 @@ namespace BlackFsdTest
|
|||||||
QList<QVariant> arguments = spy.takeFirst();
|
QList<QVariant> arguments = spy.takeFirst();
|
||||||
QCOMPARE(arguments.size(), 1);
|
QCOMPARE(arguments.size(), 1);
|
||||||
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
|
CRawFsdMessage fsdMessage = arguments.at(0).value<CRawFsdMessage>();
|
||||||
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#AAABCD:SERVER:Test User:1234567:123456:5:100");
|
QCOMPARE(fsdMessage.getRawMessage(), "FSD Sent=>#AAABCD:SERVER:Test User:1234567:123456:5:101");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTestFSDClient::testSendDeletePilot()
|
void CTestFSDClient::testSendDeletePilot()
|
||||||
|
|||||||
Reference in New Issue
Block a user