============ Cvar_Print Prints the value, default, and latched string of the given variable ============ */
| 552 | ============ |
| 553 | */ |
| 554 | void Cvar_Print( cvar_t *v ) { |
| 555 | Com_Printf( S_COLOR_GREY "Cvar " S_COLOR_WHITE "%s = " S_COLOR_GREY "\"" S_COLOR_WHITE "%s" S_COLOR_GREY "\"" S_COLOR_WHITE, v->name, v->string ); |
| 556 | |
| 557 | if ( !(v->flags & CVAR_ROM) ) { |
| 558 | if ( !Q_stricmp( v->string, v->resetString ) ) |
| 559 | Com_Printf( ", " S_COLOR_WHITE "the default" ); |
| 560 | else |
| 561 | Com_Printf( ", " S_COLOR_WHITE "default = " S_COLOR_GREY"\"" S_COLOR_WHITE "%s" S_COLOR_GREY "\"" S_COLOR_WHITE, v->resetString ); |
| 562 | } |
| 563 | |
| 564 | Com_Printf( "\n" ); |
| 565 | |
| 566 | if ( v->latchedString ) |
| 567 | Com_Printf( " latched = " S_COLOR_GREY "\"" S_COLOR_WHITE "%s" S_COLOR_GREY "\"\n", v->latchedString ); |
| 568 | } |
| 569 | |
| 570 | /* |
| 571 | ============ |
no test coverage detected