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

Method Reset_f

neo/framework/CVarSystem.cpp:1043–1056  ·  view source on GitHub ↗

============ idCVarSystemLocal::Reset_f ============ */

Source from the content-addressed store, hash-verified

1041============
1042*/
1043void idCVarSystemLocal::Reset_f( const idCmdArgs &args ) {
1044 idInternalCVar *cvar;
1045
1046 if ( args.Argc() != 2 ) {
1047 common->Printf ("usage: reset <variable>\n");
1048 return;
1049 }
1050 cvar = localCVarSystem.FindInternal( args.Argv( 1 ) );
1051 if ( !cvar ) {
1052 return;
1053 }
1054
1055 cvar->Reset();
1056}
1057
1058/*
1059============

Callers

nothing calls this directly

Calls 5

ArgcMethod · 0.80
FindInternalMethod · 0.80
ArgvMethod · 0.80
PrintfMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected