- Timestamp:
- Aug 28, 2010, 1:51:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc
r7234 r7236 38 38 static const std::string __CC_autocomplete_name = "autocomplete"; 39 39 40 _SetConsoleCommand(__CC_CommandExecutor_name, __CC_autocomplete_name, &CommandExecutor::_autocomplete)40 SetConsoleCommand(__CC_CommandExecutor_name, __CC_autocomplete_name, &CommandExecutor::_autocomplete) 41 41 .hide() 42 42 .argumentCompleter(0, autocompletion::groupsandcommands()) 43 43 .argumentCompleter(1, autocompletion::subcommands()); 44 44 45 _SetConsoleCommand("unhide", &CommandExecutor::unhide)45 SetConsoleCommand("unhide", &CommandExecutor::unhide) 46 46 .argumentCompleter(0, autocompletion::hiddencommand()); 47 47 … … 87 87 evaluation.initialize(command); 88 88 89 evaluation.hintCommand_ = _ConsoleCommand::getCommand(__CC_CommandExecutor_name, __CC_autocomplete_name);89 evaluation.hintCommand_ = ConsoleCommand::getCommand(__CC_CommandExecutor_name, __CC_autocomplete_name); 90 90 91 91 if (evaluation.getNumberOfArguments() >= 1) 92 92 { 93 evaluation.execCommand_ = _ConsoleCommand::getCommandLC(evaluation.getToken(0));93 evaluation.execCommand_ = ConsoleCommand::getCommandLC(evaluation.getToken(0)); 94 94 if (evaluation.execCommand_) 95 95 evaluation.execArgumentsOffset_ = 1; 96 96 else if (evaluation.getNumberOfArguments() >= 2) 97 97 { 98 evaluation.execCommand_ = _ConsoleCommand::getCommandLC(evaluation.getToken(0), evaluation.getToken(1));98 evaluation.execCommand_ = ConsoleCommand::getCommandLC(evaluation.getToken(0), evaluation.getToken(1)); 99 99 if (evaluation.execCommand_) 100 100 evaluation.execArgumentsOffset_ = 2;
Note: See TracChangeset
for help on using the changeset viewer.