Changeset 909:5df186bc203c


Ignore:
Timestamp:
12/16/18 09:53:06 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Phase:
public
Message:

Explicit support for X-Plane 11.

Location:
src/mlx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r901 r909  
    4949## Flight simulator type: Prepar3D
    5050SIM_P3D = 5
     51
     52## Flight simulator type: X-Plane 11
     53SIM_XPLANE11 = 6
    5154
    5255#-------------------------------------------------------------------------------
  • src/mlx/fs.py

    r765 r909  
    6262    if type in [const.SIM_MSFS9, const.SIM_MSFSX]:
    6363        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]:
    6565        return xplane.Simulator(connectionListener, connectAttempts = 3)
    6666    else:
    67         "Only MS Flight Simulator 2004 and X or X-Plane 9 and 10 are supported"
     67        "Only MS Flight Simulator 2004 and X or X-Plane 9, 10 and 11 are supported"
    6868
    6969#-------------------------------------------------------------------------------
  • src/mlx/xplane.py

    r906 r909  
    506506                  (xplaneVersion, xplmVersion, xplraVersion)
    507507                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)
    509510
    510511                    Handler._callSafe(lambda:
Note: See TracChangeset for help on using the changeset viewer.