MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_WriteConfiguration

Function Com_WriteConfiguration

code/qcommon/common.cpp:1210–1223  ·  view source on GitHub ↗

=============== Com_WriteConfiguration Writes key bindings and archived cvars to config file if modified =============== */

Source from the content-addressed store, hash-verified

1208===============
1209*/
1210void Com_WriteConfiguration( void ) {
1211 // if we are quiting without fully initializing, make sure
1212 // we don't write out anything
1213 if ( !com_fullyInitialized ) {
1214 return;
1215 }
1216
1217 if ( !(cvar_modifiedFlags & CVAR_ARCHIVE ) ) {
1218 return;
1219 }
1220 cvar_modifiedFlags &= ~CVAR_ARCHIVE;
1221
1222 Com_WriteConfigToFile( Q3CONFIG_NAME );
1223}
1224
1225
1226/*

Callers 1

Com_FrameFunction · 0.70

Calls 1

Com_WriteConfigToFileFunction · 0.70

Tested by

no test coverage detected