mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
refs #445, adjusted the drivers to reflect changes (liveries)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3e982b014f
commit
13df4302d7
@@ -25,7 +25,7 @@ namespace BlackSimPlugin
|
||||
namespace Fs9
|
||||
{
|
||||
CFs9Host::CFs9Host(QObject *owner) :
|
||||
CDirectPlayPeer(owner, CProject::systemNameAndVersion())
|
||||
CDirectPlayPeer(owner, CProject::swiftVersionString())
|
||||
{
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
initDirectPlay();
|
||||
createHostAddress();
|
||||
startHosting(CProject::systemNameAndVersion(), m_callsign.toQString());
|
||||
startHosting(CProject::swiftVersionString(), m_callsign.toQString());
|
||||
}
|
||||
|
||||
void CFs9Host::cleanup()
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace BlackSimPlugin
|
||||
// Set the device addresses
|
||||
apDevAddress[0] = pDeviceAddress;
|
||||
|
||||
QString session = BlackMisc::CProject::systemNameAndVersion();
|
||||
QString session = BlackMisc::CProject::swiftVersionString();
|
||||
QScopedArrayPointer<wchar_t> wstrSessionName(new wchar_t[session.size() + 1]);
|
||||
session.toWCharArray(wstrSessionName.data());
|
||||
wstrSessionName[session.size()] = 0;
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace BlackSimPlugin
|
||||
"Boeing 737-400",
|
||||
CAircraftModel::TypeModelMatchingDefaultModel,
|
||||
"B737-400 default model",
|
||||
CAircraftIcaoData(CAircraftIcaoCode("B734", "L2J"), CAirlineIcaoCode(), "FFFFFF")
|
||||
CAircraftIcaoData(CAircraftIcaoCode("B734", "L2J"), CAirlineIcaoCode())
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace BlackSimPlugin
|
||||
"Boeing 737-800 Paint1",
|
||||
CAircraftModel::TypeModelMatchingDefaultModel,
|
||||
"B737-800 default model",
|
||||
CAircraftIcaoData(CAircraftIcaoCode("B738", "L2J"), CAirlineIcaoCode(), "FFFFFF")
|
||||
CAircraftIcaoData(CAircraftIcaoCode("B738", "L2J"), CAirlineIcaoCode())
|
||||
));
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace BlackSimPlugin
|
||||
bool CSimulatorFsx::connectTo()
|
||||
{
|
||||
if (this->isConnected()) { return true; }
|
||||
if (FAILED(SimConnect_Open(&m_hSimConnect, BlackMisc::CProject::systemNameAndVersionChar(), nullptr, 0, 0, 0)))
|
||||
if (FAILED(SimConnect_Open(&m_hSimConnect, BlackMisc::CProject::swiftVersionChar(), nullptr, 0, 0, 0)))
|
||||
{
|
||||
// reset state as expected for unconnected
|
||||
if (m_simconnectTimerId >= 0) { killTimer(m_simconnectTimerId); }
|
||||
@@ -869,7 +869,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
Q_ASSERT_X(!BlackCore::isCurrentThreadApplicationThread(), Q_FUNC_INFO, "Expect to run in background");
|
||||
HANDLE hSimConnect;
|
||||
HRESULT result = SimConnect_Open(&hSimConnect, BlackMisc::CProject::systemNameAndVersionChar(), nullptr, 0, 0, 0);
|
||||
HRESULT result = SimConnect_Open(&hSimConnect, BlackMisc::CProject::swiftVersionChar(), nullptr, 0, 0, 0);
|
||||
SimConnect_Close(hSimConnect);
|
||||
if (result == S_OK)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace BlackSimPlugin
|
||||
.arg(event->szApplicationName)
|
||||
.arg(event->dwApplicationVersionMajor).arg(event->dwApplicationVersionMinor).arg(event->dwApplicationBuildMajor).arg(event->dwApplicationBuildMinor)
|
||||
.arg(event->dwSimConnectVersionMajor).arg(event->dwSimConnectVersionMinor).arg(event->dwSimConnectBuildMajor).arg(event->dwSimConnectBuildMinor);
|
||||
CLogMessage(static_cast<CSimulatorFsx *>(nullptr)).info("Connect to FSX: %1") << CProject::systemNameAndVersion();
|
||||
CLogMessage(static_cast<CSimulatorFsx *>(nullptr)).info("Connect to FSX: %1") << CProject::swiftVersionString();
|
||||
break;
|
||||
}
|
||||
case SIMCONNECT_RECV_ID_EXCEPTION:
|
||||
|
||||
Reference in New Issue
Block a user