Changeset 1077:e230d26ca700


Ignore:
Timestamp:
02/14/23 15:14:47 (23 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Constants and basic support for MSFS 2020 (re #364).

Location:
src/mlx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r1073 r1077  
    5555## Flight simulator type: X-Plane 12
    5656SIM_XPLANE12 = 7
     57
     58#---light simulator type: MSFS 2020
     59SIM_MSFS2020 = 8
    5760
    5861#-------------------------------------------------------------------------------
  • src/mlx/fsuipc.py

    r1022 r1077  
    416416                     pyuipc.fs_version)
    417417                if not autoReconnection:
    418                     fsType = const.SIM_MSFSX \
     418                    fsType = const.SIM_MSFS2020 \
     419                             if (pyuipc.fs_version == pyuipc.SIM_FS2020) \
     420                             else const.SIM_MSFSX \
    419421                             if (pyuipc.fs_version == pyuipc.SIM_FSX or
    420422                                 pyuipc.fs_version == pyuipc.SIM_FSX64) \
  • src/mlx/pyuipc_sim.py

    r1021 r1077  
    4545SIM_FSX64=11
    4646SIM_P3D64=12
     47SIM_FS2020=13
    4748
    4849#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.