| 1185 | //================================================================== |
| 1186 | |
| 1187 | void 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 | /* |
no test coverage detected