Ignore:
Timestamp:
Sep 18, 2014 2:01:56 PM (6 years ago)
Author:
ldelgass
Message:

Add resources directory command line option, preliminary testing of new map
coords syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/RenderServer.cpp

    r4632 r4635  
    292292    signal(SIGPIPE, SIG_IGN);
    293293
    294     //const char *resourcePath = NULL;
     294    std::string resourcePath;
    295295    while (1) {
    296296        int c = getopt(argc, argv, "p:i:o:");
     
    300300        switch (c) {
    301301        case 'p':
    302             //resourcePath = optarg;
     302            resourcePath = optarg;
    303303            break;
    304304        case 'i': {
     
    351351    g_renderer = new Renderer();
    352352    g_inBufPtr = new ReadBuffer(g_fdIn, 1<<12);
     353
     354    if (resourcePath.empty()) {
     355        resourcePath = "/usr/share/osgearth/data";
     356    }
     357    g_renderer->setResourcePath(resourcePath);
    353358
    354359    Tcl_Interp *interp = Tcl_CreateInterp();
Note: See TracChangeset for help on using the changeset viewer.