Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fs.py

    r408 r501  
    33from sound import startSound
    44
     5import os
     6
    57import fsuipc
     8import xplane
     9
    610import threading
    711import time
     
    5660    FIXME: add info
    5761    """
    58     assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \
    59            "Only MS Flight Simulator 2004 and X are supported"
    60     return fsuipc.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"
    6168
    6269#-------------------------------------------------------------------------------
     
    9097        with self._requestCondition:
    9198            self._toQuit = True
    92             self._requestCondition.notifty()
     99            self._requestCondition.notify()
    93100        self.join()
    94101
Note: See TracChangeset for help on using the changeset viewer.