Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 3:11:15 PM (16 years ago)
Author:
rgrieder
Message:

ORXONOX_USE_WINMAIN should now work as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/CommandLine.cc

    r3280 r3323  
    332332        Parses only the command line for CommandLineArguments.
    333333    */
    334     void CommandLine::_parseCommandLine(int argc, char** argv)
     334    void CommandLine::_parseCommandLine(const std::string& cmdLine)
    335335    {
    336336        std::vector<std::string> args;
    337         for (int i = 1; i < argc; ++i)
    338             args.push_back(argv[i]);
     337        SubString tokens(cmdLine, " ", " ", false, '\\', true, '"', true, '(', ')', false);
     338        for (unsigned i = 0; i < tokens.size(); ++i)
     339            args.push_back(tokens[i]);
    339340        this->_parse(args, false);
    340341    }
     
    363364                //if (!(line[0] == '#' || line[0] == '%'))
    364365                //{
    365                 SubString tokens(line, " ", " ", false, 92, false, 34, false, 40, 41, false, '#');
     366                SubString tokens(line, " ", " ", false, '\\', true, '"', true, '(', ')', false, '#');
    366367                for (unsigned i = 0; i < tokens.size(); ++i)
    367368                    if (tokens[i][0] != '#')
Note: See TracChangeset for help on using the changeset viewer.