mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
Send correct SimType to FSD server depending which plugin is loaded
This commit is contained in:
@@ -375,9 +375,17 @@ namespace BlackCore
|
|||||||
VatSimType CNetworkVatlib::convertToSimType(CSimulatorPluginInfo &simInfo)
|
VatSimType CNetworkVatlib::convertToSimType(CSimulatorPluginInfo &simInfo)
|
||||||
{
|
{
|
||||||
//! \fixme Define recognized simulators somewhere */
|
//! \fixme Define recognized simulators somewhere */
|
||||||
if (simInfo.getSimulator() == "fs9" || simInfo.getSimulator() == "fsx")
|
if (simInfo.getSimulator() == "fs9")
|
||||||
{
|
{
|
||||||
return vatSimTypeMSFS95;
|
return vatSimTypeMSFS2004;
|
||||||
|
}
|
||||||
|
else if (simInfo.getSimulator() == "fsx")
|
||||||
|
{
|
||||||
|
return vatSimTypeMSFSX;
|
||||||
|
}
|
||||||
|
else if (simInfo.getSimulator() == "p3d")
|
||||||
|
{
|
||||||
|
return vatSimTypeP3Dv1;
|
||||||
}
|
}
|
||||||
else if (simInfo.getSimulator() == "xplane")
|
else if (simInfo.getSimulator() == "xplane")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user