Changeset 1021:53dd9a8e6b99 for src


Ignore:
Timestamp:
04/18/21 13:20:08 (4 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The PyUIPC simulator returns string data as bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pyuipc_sim.py

    r969 r1021  
    606606            return int(self.zfw * 256.0 * const.KGSTOLB)
    607607        elif offset==0x3c00:       # Path of the current AIR file
    608             return self.airPath
     608            return bytes(self.airPath, "iso-8859-1")
    609609        elif offset==0x3d00:       # Name of the current aircraft
    610             return self.aircraftName
     610            return bytes(self.aircraftName, "iso-8859-1")
    611611        elif offset==0x6202:       # PMDG 737NG switches
    612612            return self.pmdg_737ng_switches
Note: See TracChangeset for help on using the changeset viewer.