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
  • src/plugin/src/xplra/plugin.cc

    r13 r36  
    8383    Util::debug("hu.varadiistvan.xplra.XPluginEnable called\n");
    8484    // XPLMRegisterFlightLoopCallback(&callback, 5.0, 0);
    85     listenThread = new ListenThread();
     85
     86    int xplaneVersion = 0;
     87    int xplmVersion = 0;
     88    XPLMHostApplicationID hostID = 0;
     89    XPLMGetVersions(&xplaneVersion, &xplmVersion, &hostID);
     90
     91    listenThread = new ListenThread(xplaneVersion, xplmVersion);
    8692    listenThread->start();
    8793}
Note: See TracChangeset for help on using the changeset viewer.