Changeset 36:29e3b676c0c2 in xplra for test/basictest.cc


Ignore:
Timestamp:
02/10/13 08:21:47 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
Message:

Added a new command to query the versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/basictest.cc

    r25 r36  
    5353        printf("Connected to X-Plane.\n\n");
    5454
     55        int xplaneVersion = 0;
     56        int xplmVersion = 0;
     57        int xplraVersion = 0;
     58
     59        printf("Querying the versions...\n");
     60        xplane.getVersions(xplaneVersion, xplmVersion, xplraVersion);
     61        printf("X-Plane version: %d, XPLM: %d, XPLRA: %03d\n\n",
     62               xplaneVersion, xplmVersion, xplraVersion);
     63
    5564        printf("Querying the number of the engines...\n");
    5665        int numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines");
Note: See TracChangeset for help on using the changeset viewer.