Changeset 5929 for code/trunk/src/libraries/core/CommandLine.cc
- Timestamp:
- Oct 12, 2009, 8:20:07 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core5 (added) merged: 5768-5769,5772,5775-5780,5783-5785,5791-5792,5795-5807,5809-5814,5816-5832,5836-5839,5842-5853,5855-5899,5904-5922,5924-5928
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/CommandLine.cc
r5738 r5929 31 31 #include <algorithm> 32 32 #include <sstream> 33 #include <boost/filesystem.hpp>34 33 35 34 #include "util/Convert.h" … … 38 37 #include "util/StringUtils.h" 39 38 #include "util/SubString.h" 40 #include " Core.h"39 #include "PathConfig.h" 41 40 42 41 namespace orxonox … … 285 284 } 286 285 286 infoStr << std::endl; 287 287 infoStr << "Usage: orxonox [options]" << std::endl; 288 288 infoStr << "Available options:" << std::endl; … … 348 348 { 349 349 std::string filename = CommandLine::getValue("optionsFile").getString(); 350 boost::filesystem::path filepath(Core::getConfigPath() / filename);351 350 352 351 // look for additional arguments in given file or start.ini as default 353 352 // They will not overwrite the arguments given directly 354 353 std::ifstream file; 355 file.open( filepath.string().c_str());354 file.open((PathConfig::getConfigPathString() + filename).c_str()); 356 355 std::vector<std::string> args; 357 356 if (file)
Note: See TracChangeset
for help on using the changeset viewer.