Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 28, 2009, 7:15:37 PM (16 years ago)
Author:
rgrieder
Message:

Added run scripts for client1, client2 and server.
They will be copied to the same locations as the original run scripts.
Furthermore specifying "—directory foobar" to the command line will put the config and log files in the subfolder foobar.
—> server goes to config/server, etc.
That should avoid conflicts when using the same logfile from multiple executables.

Location:
code/branches/buildsystem3/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/core/Core.cc

    r2703 r2709  
    7777
    7878    SetCommandLineArgument(mediaPath, "").information("PATH");
     79    SetCommandLineArgument(directory, "").information("DIR");
    7980
    8081    /**
     
    426427#endif
    427428        }
     429
     430        // Option to put all the config and log files in a separate folder
     431        if (!CommandLine::getArgument("directory")->hasDefaultValue())
     432        {
     433            std::string directory(CommandLine::getValue("directory"));
     434            configPath_g = configPath_g / directory;
     435            logPath_g    = logPath_g    / directory;
     436        }
    428437    }
    429438
  • code/branches/buildsystem3/src/orxonox/Main.cc

    r2702 r2709  
    9292    using namespace orxonox;
    9393
    94     Core::postMainInitialisation();
    95 
    9694    // create a signal handler (only active for linux)
    9795    SignalHandler signalHandler;
     
    108106        COUT(0) << "Usage:" << std::endl << "orxonox " << CommandLine::getUsageInformation() << std::endl;
    109107    }
     108
     109    // Do this after parsing the command line to allow customisation
     110    Core::postMainInitialisation();
    110111
    111112    // Create the ConfigFileManager before creating the GameStates in order to have
Note: See TracChangeset for help on using the changeset viewer.