Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2008, 12:43:13 AM (16 years ago)
Author:
rgrieder
Message:

Simplified CommandLineArgument by using the new MultiType.
That also enables to get a cmd argument even if you don't know the exact type. It simply gets converted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSRoot.cc

    r1891 r2003  
    6161namespace orxonox
    6262{
    63     SetCommandLineArgument(dataPath, "").setInformation("PATH");
    64     SetCommandLineArgument(limitToCPU, 1).setInformation("0: off | #cpu");
     63    SetCommandLineArgument(dataPath, "").information("PATH");
     64    SetCommandLineArgument(limitToCPU, 1).information("0: off | #cpu");
    6565
    6666    GSRoot::GSRoot()
     
    9191        this->settings_ = new Settings();
    9292
    93         std::string dataPath;
    94         CommandLine::getValue("dataPath", &dataPath);
     93        std::string dataPath = CommandLine::getValue("dataPath");
    9594        if (dataPath != "")
    9695        {
     
    111110        // do this after ogre has initialised. Somehow Ogre changes the settings again (not through
    112111        // the timer though).
    113         int limitToCPU;
    114         CommandLine::getValue("limitToCPU", &limitToCPU);
     112        int limitToCPU = CommandLine::getValue("limitToCPU");
    115113        if (limitToCPU > 0)
    116114            setThreadAffinity((unsigned int)(limitToCPU - 1));
Note: See TracChangeset for help on using the changeset viewer.