| 201 | } |
| 202 | |
| 203 | void Com_WriteCam ( const char *text ) |
| 204 | { |
| 205 | static char mapname[MAX_QPATH]; |
| 206 | // camerafile |
| 207 | if ( !camerafile ) |
| 208 | { |
| 209 | extern cvar_t *sv_mapname; |
| 210 | |
| 211 | //NOTE: always saves in working dir if using one... |
| 212 | Com_sprintf( mapname, MAX_QPATH, "maps/%s_cam.map", sv_mapname->string ); |
| 213 | camerafile = FS_FOpenFileWrite( mapname ); |
| 214 | } |
| 215 | |
| 216 | if ( camerafile ) |
| 217 | { |
| 218 | FS_Printf( camerafile, "%s", text ); |
| 219 | } |
| 220 | |
| 221 | Com_Printf( "%s\n", mapname ); |
| 222 | } |
| 223 | |
| 224 | void Com_FlushCamFile() |
| 225 | { |
nothing calls this directly
no test coverage detected