Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7246 in orxonox.OLD for branches/preferences/src


Ignore:
Timestamp:
Mar 24, 2006, 5:15:23 PM (19 years ago)
Author:
rennerc
Message:

prefs are loaded from ini and commandline

Location:
branches/preferences/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/lib/parser/cmdline_parser/cmdline_parser.cc

    r7243 r7246  
    7171      ar.erase( 0, ar.find("=")+1);
    7272     
    73       PRINTF(0)("'%s' '%s'\n", op.c_str(), ar.c_str());
     73      //PRINTF(0)("'%s' '%s'\n", op.c_str(), ar.c_str());
    7474      args.push_back( op );
    7575      args.push_back( ar );
     
    146146        std::string lo = entry.longOption;
    147147        lo.erase( lo.length()-1, 1 );
    148         PRINTF(0)("%s %s\n", arg.c_str(), lo.c_str());
     148        //PRINTF(0)("%s %s\n", arg.c_str(), lo.c_str());
    149149        return arg.find( lo ) == 0;
    150150      }
  • branches/preferences/src/orxonox.cc

    r7243 r7246  
    5959#include "state.h"
    6060#include "lib/parser/preferences/cmd_line_prefs_reader.h"
     61#include "lib/parser/preferences/ini_file_prefs_reader.h"
    6162#include <string.h>
    6263
     
    404405{
    405406  CmdLinePrefsReader prefs;
     407 
     408  IniFilePrefsReader ini(ResourceManager::homeDirCheck(DEFAULT_CONFIG_FILE));
     409 
    406410  prefs.parse(argc, argv);
    407 
    408  // assert(false);
     411 
     412  Preferences::getInstance()->debug();
     413
     414  assert(false);
    409415 
    410416  int i;
Note: See TracChangeset for help on using the changeset viewer.