MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / WriteFlaggedVariables

Method WriteFlaggedVariables

neo/framework/CVarSystem.cpp:856–863  ·  view source on GitHub ↗

============ idCVarSystemLocal::WriteFlaggedVariables Appends lines containing "set variable value" for all variables with the "flags" flag set to true. ============ */

Source from the content-addressed store, hash-verified

854============
855*/
856void 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============

Callers 2

WriteConfigToFileMethod · 0.80

Calls 5

NumMethod · 0.45
GetFlagsMethod · 0.45
PrintfMethod · 0.45
GetNameMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected