Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fs.py

    r501 r408  
    33from sound import startSound
    44
    5 import os
    6 
    75import fsuipc
    8 import xplane
    9 
    106import threading
    117import time
     
    6056    FIXME: add info
    6157    """
    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"
     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)
    6861
    6962#-------------------------------------------------------------------------------
     
    9790        with self._requestCondition:
    9891            self._toQuit = True
    99             self._requestCondition.notify()
     92            self._requestCondition.notifty()
    10093        self.join()
    10194
Note: See TracChangeset for help on using the changeset viewer.