mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Based on the Linux crash, already added some newer SIMS
This commit is contained in:
committed by
Mat Sutcliffe
parent
90017f2e79
commit
15353a1f1d
@@ -59,14 +59,17 @@ namespace BlackCore
|
|||||||
MSCFS3, /*!< MS Combat Flight Simulator 3 */
|
MSCFS3, /*!< MS Combat Flight Simulator 3 */
|
||||||
MSFS2004, /*!< MS Flight Simulator 2004 */
|
MSFS2004, /*!< MS Flight Simulator 2004 */
|
||||||
MSFSX, /*!< MS Flight Simulator X */
|
MSFSX, /*!< MS Flight Simulator X */
|
||||||
|
MSFS2020, /*!< MS Flight Simulator 2020 */
|
||||||
XPLANE8, /*!< X-Plane 8 */
|
XPLANE8, /*!< X-Plane 8 */
|
||||||
XPLANE9, /*!< X-Plane 9 */
|
XPLANE9, /*!< X-Plane 9 */
|
||||||
XPLANE10, /*!< X-Plane 10 */
|
XPLANE10, /*!< X-Plane 10 */
|
||||||
XPLANE11, /*!< X-Plane 11 */
|
XPLANE11, /*!< X-Plane 11 */
|
||||||
|
XPLANE12, /*!< X-Plane 12 */
|
||||||
P3Dv1, /*!< Prepar3D V1 */
|
P3Dv1, /*!< Prepar3D V1 */
|
||||||
P3Dv2, /*!< Prepar3D V2 */
|
P3Dv2, /*!< Prepar3D V2 */
|
||||||
P3Dv3, /*!< Prepar3D V3 */
|
P3Dv3, /*!< Prepar3D V3 */
|
||||||
P3Dv4, /*!< Prepar3D V4 */
|
P3Dv4, /*!< Prepar3D V4 */
|
||||||
|
P3Dv5, /*!< Prepar3D V5 */
|
||||||
FlightGear /*!< Flight Gear */
|
FlightGear /*!< Flight Gear */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,12 @@ namespace BlackCore
|
|||||||
case SimType::P3Dv2: return "30";
|
case SimType::P3Dv2: return "30";
|
||||||
case SimType::P3Dv3: return "30";
|
case SimType::P3Dv3: return "30";
|
||||||
case SimType::P3Dv4: return "30";
|
case SimType::P3Dv4: return "30";
|
||||||
|
|
||||||
|
// future versions
|
||||||
|
case SimType::XPLANE12:
|
||||||
|
case SimType::P3Dv5:
|
||||||
|
case SimType::MSFS2020:
|
||||||
|
return "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_UNREACHABLE();
|
Q_UNREACHABLE();
|
||||||
@@ -142,15 +148,15 @@ namespace BlackCore
|
|||||||
|
|
||||||
// valid types
|
// valid types
|
||||||
if (str == "0") return SimType::Unknown;
|
if (str == "0") return SimType::Unknown;
|
||||||
else if (str == "1") return SimType::MSFS95;
|
else if (str == "1") return SimType::MSFS95;
|
||||||
else if (str == "2") return SimType::MSFS98;
|
else if (str == "2") return SimType::MSFS98;
|
||||||
else if (str == "3") return SimType::MSCFS;
|
else if (str == "3") return SimType::MSCFS;
|
||||||
else if (str == "4") return SimType::MSFS2000;
|
else if (str == "4") return SimType::MSFS2000;
|
||||||
else if (str == "5") return SimType::MSCFS2;
|
else if (str == "5") return SimType::MSCFS2;
|
||||||
else if (str == "6") return SimType::MSFS2002;
|
else if (str == "6") return SimType::MSFS2002;
|
||||||
else if (str == "7") return SimType::MSCFS3;
|
else if (str == "7") return SimType::MSCFS3;
|
||||||
else if (str == "8") return SimType::MSFS2004;
|
else if (str == "8") return SimType::MSFS2004;
|
||||||
else if (str == "9") return SimType::MSFSX;
|
else if (str == "9") return SimType::MSFSX;
|
||||||
else if (str == "12") return SimType::XPLANE8;
|
else if (str == "12") return SimType::XPLANE8;
|
||||||
else if (str == "13") return SimType::XPLANE9;
|
else if (str == "13") return SimType::XPLANE9;
|
||||||
else if (str == "14") return SimType::XPLANE10;
|
else if (str == "14") return SimType::XPLANE10;
|
||||||
|
|||||||
Reference in New Issue
Block a user