Ignore:
Timestamp:
04/07/13 07:09:14 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
xplane
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added logic to select the simulator type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r496 r501  
    520520        self._disconnect()
    521521
     522        self._simulator = None
     523
    522524        self._flightInfo.reset()
    523525        self._flightInfo.disable()
     
    894896            self._stdioStartingLine = False
    895897
    896     def connectSimulator(self, aircraftType):
     898    def connectSimulator(self, aircraftType, simulatorType):
    897899        """Connect to the simulator for the first time."""
    898900        self._logger.reset()
     
    905907
    906908        if self._simulator is None:
    907             self._simulator = fs.createSimulator(const.SIM_MSFS9, self)
     909            self._simulator = fs.createSimulator(simulatorType, self)
    908910            fs.setupMessageSending(self.config, self._simulator)
    909911            self._setupTimeSync()
Note: See TracChangeset for help on using the changeset viewer.