Changeset 499:9ff36d6cab14 for src
- Timestamp:
- 04/07/13 06:33:43 (12 years ago)
- Branch:
- xplane
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fs.py
r420 r499 5 5 import os 6 6 7 if os.name=="nt" or "FORCE_PYUIPC_SIM" in os.environ: 8 import fsuipc as sim 9 else: 10 import xplane as sim 7 import fsuipc 8 import xplane 11 9 12 10 import threading … … 62 60 FIXME: add info 63 61 """ 64 assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \ 65 "Only MS Flight Simulator 2004 and X are supported" 66 return sim.Simulator(connectionListener, connectAttempts = 3) 62 if type in [const.SIM_MSFS9, const.SIM_MSFSX]: 63 return fsuipc.Simulator(connectionListener, connectAttempts = 3) 64 elif type in [const.SIM_XPLANE9, const.SIM_XPLANE10]: 65 return xplane.Simulator(connectionListener, connectAttempts = 3) 66 else: 67 "Only MS Flight Simulator 2004 and X or X-Plane 9 and 10 are supported" 67 68 68 69 #-------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.