============ idCVarSystemLocal::Command ============ */
| 736 | ============ |
| 737 | */ |
| 738 | bool idCVarSystemLocal::Command( const idCmdArgs &args ) { |
| 739 | idInternalCVar *internal; |
| 740 | |
| 741 | internal = FindInternal( args.Argv( 0 ) ); |
| 742 | |
| 743 | if ( internal == NULL ) { |
| 744 | return false; |
| 745 | } |
| 746 | |
| 747 | if ( args.Argc() == 1 ) { |
| 748 | // print the variable |
| 749 | common->Printf( "\"%s\" is:\"%s\"" S_COLOR_WHITE " default:\"%s\"\n", |
| 750 | internal->nameString.c_str(), internal->valueString.c_str(), internal->resetString.c_str() ); |
| 751 | if ( idStr::Length( internal->GetDescription() ) > 0 ) { |
| 752 | common->Printf( S_COLOR_WHITE "%s\n", internal->GetDescription() ); |
| 753 | } |
| 754 | } else { |
| 755 | // set the value |
| 756 | internal->Set( args.Args(), false, false ); |
| 757 | } |
| 758 | return true; |
| 759 | } |
| 760 | |
| 761 | /* |
| 762 | ============ |
no test coverage detected