============ idCVarSystemLocal::WriteFlaggedVariables Appends lines containing "set variable value" for all variables with the "flags" flag set to true. ============ */
| 854 | ============ |
| 855 | */ |
| 856 | void idCVarSystemLocal::WriteFlaggedVariables( int flags, const char *setCmd, idFile *f ) const { |
| 857 | for( int i = 0; i < cvars.Num(); i++ ) { |
| 858 | idInternalCVar *cvar = cvars[i]; |
| 859 | if ( cvar->GetFlags() & flags ) { |
| 860 | f->Printf( "%s %s \"%s\"\n", setCmd, cvar->GetName(), cvar->GetString() ); |
| 861 | } |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | /* |
| 866 | ============ |