Changeset 2685 for code/branches/buildsystem3/src/core/CommandLine.cc
- Timestamp:
- Feb 20, 2009, 5:32:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/core/CommandLine.cc
r2662 r2685 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 folder(Core::getConfigPath()); 305 boost::filesystem::path filepath(folder/filename); 306 301 307 // look for additional arguments in given file or start.ini as default 302 308 // They will not overwrite the arguments given directly 303 309 std::ifstream file; 304 std::string filename = CommandLine::getValue("optionsFile").getString(); 305 file.open(filename.c_str()); 310 file.open(filepath.native_file_string().c_str()); 306 311 args.clear(); 307 312 if (file)
Note: See TracChangeset
for help on using the changeset viewer.