Execute any console commands specified on the command line. These all begin with '+' as opposed to '-'.
| 860 | // Execute any console commands specified on the command line. |
| 861 | // These all begin with '+' as opposed to '-'. |
| 862 | FExecList *C_ParseCmdLineParams(FExecList *exec) |
| 863 | { |
| 864 | for (int currArg = 1; currArg < Args->NumArgs(); ) |
| 865 | { |
| 866 | if (*Args->GetArg (currArg++) == '+') |
| 867 | { |
| 868 | FString cmdString; |
| 869 | int cmdlen = 1; |
| 870 | int argstart = currArg - 1; |
| 871 | |
| 872 | while (currArg < Args->NumArgs()) |
| 873 | { |
| 874 | if (*Args->GetArg (currArg) == '-' || *Args->GetArg (currArg) == '+') |
| 875 | break; |
| 876 | currArg++; |
| 877 | cmdlen++; |
| 878 | } |
| 879 | |
| 880 | cmdString = BuildString (cmdlen, Args->GetArgList (argstart)); |
| 881 | if (!cmdString.IsEmpty()) |
| 882 | { |
| 883 | if (exec == NULL) |
| 884 | { |
| 885 | exec = new FExecList; |
| 886 | } |
| 887 | exec->AddCommand(&cmdString[1]); |
| 888 | } |
| 889 | } |
| 890 | } |
| 891 | return exec; |
| 892 | } |
| 893 | |
| 894 | bool FConsoleCommand::IsAlias () |
| 895 | { |
no test coverage detected