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

Function FS_FileForHandle

code/qcommon/files.cpp:346–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static FILE *FS_FileForHandle( fileHandle_t f ) {
347 if ( f < 1 || f >= MAX_FILE_HANDLES ) {
348 Com_Error( ERR_DROP, "FS_FileForHandle: out of range" );
349 }
350 if (fsh[f].zipFile == qtrue) {
351 Com_Error( ERR_DROP, "FS_FileForHandle: can't get FILE on zip file" );
352 }
353 if ( ! fsh[f].handleFiles.file.o ) {
354 Com_Error( ERR_DROP, "FS_FileForHandle: NULL" );
355 }
356
357 return fsh[f].handleFiles.file.o;
358}
359
360void FS_ForceFlush( fileHandle_t f ) {
361 FILE *file;

Callers 5

FS_ForceFlushFunction · 0.70
FS_filelengthFunction · 0.70
FS_WriteFunction · 0.70
FS_SeekFunction · 0.70
FS_GetModListFunction · 0.70

Calls 1

Com_ErrorFunction · 0.70

Tested by

no test coverage detected