Changeset 2710 for code/trunk/src/core/CommandLine.cc
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/core/CommandLine.cc
r2662 r2710 29 29 #include "CommandLine.h" 30 30 31 #include <boost/filesystem.hpp> 31 32 #include "util/String.h" 32 33 #include "util/SubString.h" 34 #include "Core.h" 33 35 34 36 namespace orxonox … … 299 301 this->_parse(args); 300 302 303 std::string filename = CommandLine::getValue("optionsFile").getString(); 304 boost::filesystem::path filepath(Core::getConfigPath() / filename); 305 301 306 // look for additional arguments in given file or start.ini as default 302 307 // They will not overwrite the arguments given directly 303 308 std::ifstream file; 304 std::string filename = CommandLine::getValue("optionsFile").getString(); 305 file.open(filename.c_str()); 309 file.open(filepath.file_string().c_str()); 306 310 args.clear(); 307 311 if (file)
Note: See TracChangeset
for help on using the changeset viewer.