Ignore:
Timestamp:
02/10/13 08:21:47 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added a new command to query the versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/XPlane.cc

    r30 r36  
    193193//------------------------------------------------------------------------------
    194194
     195void XPlane::getVersions(int& xplaneVersion, int& xplmVersion, int& xplraVersion)
     196    throw(Exception)
     197{
     198    stream->writeU8(Protocol::COMMAND_GET_VERSIONS);
     199    stream->flush();
     200    checkResult();
     201
     202    xplaneVersion = stream->readS32();
     203    xplmVersion = stream->readS32();
     204    xplraVersion = stream->readS32();
     205
     206    checkStream();
     207}
     208
     209//------------------------------------------------------------------------------
     210
    195211void XPlane::getScalar(const char* name, uint8_t type) throw(Exception)
    196212{
Note: See TracChangeset for help on using the changeset viewer.