Changeset 89:69ba1a2b5897 in xplra


Ignore:
Timestamp:
05/12/13 09:06:13 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added calls to save the current situation

Location:
test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/basicctest.c

    r60 r89  
    105105           xplaneVersion, xplmVersion, xplraVersion);
    106106
     107    printf("Saving the situation...\n");
     108    if (xplra_save_situation(connectionID, "output/situations/test.sit")<0) goto error;
     109    printf("Saved the situation\n\n");
     110
    107111    printf("Querying the number of the engines...\n");
    108112    if (xplra_get_int(&numEngines, connectionID,
  • test/basictest.cc

    r60 r89  
    7070               xplaneVersion, xplmVersion, xplraVersion);
    7171
     72        printf("Saving the situation...\n");
     73        xplane.saveSituation("output/situations/test.sit");
     74        printf("Saved the situation\n\n");
     75
    7276        printf("Querying the number of the engines...\n");
    7377        int numEngines = xplane.getInt("sim/aircraft/engine/acf_num_engines");
  • test/basictest.py

    r40 r89  
    2626        print "X-Plane version: %d, XPLM: %d, XPLRA: %03d" % \
    2727               (xplaneVersion, xplmVersion, xplraVersion)
     28        print
     29
     30        print "Saving the situation..."
     31        xplane.saveSituation("output/situations/test.sit")
     32        print "Saved the situation"
    2833        print
    2934
Note: See TracChangeset for help on using the changeset viewer.