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

Function Com_WriteConfigToFile

code/qcommon/common.cpp:1187–1200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185//==================================================================
1186
1187void Com_WriteConfigToFile( const char *filename ) {
1188 fileHandle_t f;
1189
1190 f = FS_FOpenFileWrite( filename );
1191 if ( !f ) {
1192 Com_Printf ("Couldn't write %s.\n", filename );
1193 return;
1194 }
1195
1196 FS_Printf (f, "// generated by OpenJK SP, do not modify\n");
1197 Key_WriteBindings (f);
1198 Cvar_WriteVariables (f);
1199 FS_FCloseFile( f );
1200}
1201
1202
1203/*

Callers 2

Com_WriteConfigurationFunction · 0.70
Com_WriteConfig_fFunction · 0.70

Calls 6

FS_FOpenFileWriteFunction · 0.70
Com_PrintfFunction · 0.70
FS_PrintfFunction · 0.70
Cvar_WriteVariablesFunction · 0.70
FS_FCloseFileFunction · 0.70
Key_WriteBindingsFunction · 0.50

Tested by

no test coverage detected