Ignore:
Timestamp:
02/10/13 16:54:52 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
xplane
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Implemented the most important parts of X-Plane support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fs.py

    r408 r420  
    33from sound import startSound
    44
    5 import fsuipc
     5import os
     6
     7if os.name=="nt" or "FORCE_PYUIPC_SIM" in os.environ:
     8    import fsuipc as sim
     9else:
     10    import xplane as sim
     11
    612import threading
    713import time
     
    5864    assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \
    5965           "Only MS Flight Simulator 2004 and X are supported"
    60     return fsuipc.Simulator(connectionListener, connectAttempts = 3)
     66    return sim.Simulator(connectionListener, connectAttempts = 3)
    6167
    6268#-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.