Changeset 909:5df186bc203c for src
- Timestamp:
- 12/16/18 09:53:06 (6 years ago)
- Branch:
- version_0.39_maint
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/const.py
r901 r909 49 49 ## Flight simulator type: Prepar3D 50 50 SIM_P3D = 5 51 52 ## Flight simulator type: X-Plane 11 53 SIM_XPLANE11 = 6 51 54 52 55 #------------------------------------------------------------------------------- -
src/mlx/fs.py
r765 r909 62 62 if type in [const.SIM_MSFS9, const.SIM_MSFSX]: 63 63 return fsuipc.Simulator(connectionListener, connectAttempts = 3) 64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10 ]:64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10, const.SIM_XPLANE11]: 65 65 return xplane.Simulator(connectionListener, connectAttempts = 3) 66 66 else: 67 "Only MS Flight Simulator 2004 and X or X-Plane 9 and 10are supported"67 "Only MS Flight Simulator 2004 and X or X-Plane 9, 10 and 11 are supported" 68 68 69 69 #------------------------------------------------------------------------------- -
src/mlx/xplane.py
r906 r909 506 506 (xplaneVersion, xplmVersion, xplraVersion) 507 507 if not autoReconnection: 508 fsType = const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9 508 fsType = const.SIM_XPLANE11 if xplaneVersion>=11000 else \ 509 (const.SIM_XPLANE10 if xplaneVersion>=10000 else const.SIM_XPLANE9) 509 510 510 511 Handler._callSafe(lambda:
Note:
See TracChangeset
for help on using the changeset viewer.