Lines Matching refs:FILE
58 // this graphic needs to be in the pak file to use registered features
82 All of Quake's data access is through a hierchal file system, but the contents of the file system can be transparently merged from several sources.
90 specified, when a file is found by the normal search path, it will be mirrored
96 The file "parms.txt" will be read out of the game directory and appended to the current command line arguments to allow different games to initialize startup parms differently. This could be used to add a "-sspeed 22050" for the high quality sound edition. Because they are added at the end, they will not override an explicit setting on the original command line.
877 file.
886 // end now points one character beyond the end of the base part of the file.
945 return NULL; // end of file;
1027 Looks for the pop.txt file and verifies it.
1053 // file caching to work:
1065 Sys_Error ("Corrupted data file.");
1361 Copies a file over from the net to the local cache, creating any directories
1372 COM_CreatePath (cachepath); // create directories up to the cache file
1394 Finds the file in the search path.
1395 Sets com_filesize and one of handle or file
1398 int COM_FindFile (const char *filename, int *handle, FILE **file)
1407 if (file && handle)
1408 Sys_Error ("COM_FindFile: both handle and file set");
1409 if (!file && !handle)
1410 Sys_Error ("COM_FindFile: neither handle or file set");
1424 // is the element a pak file?
1427 // look through all the pak file elements
1439 { // open a new file on the pakfile
1440 *file = fopen (pak->filename, "rb");
1441 if (*file)
1442 fseek (*file, pak->files[i].filepos, SEEK_SET);
1450 // check a file in the directory tree
1463 // see if the file needs to be updated in the cache
1491 *file = fopen (netpath, "rb");
1503 *file = NULL;
1515 it may actually be inside a pak file
1527 If the requested file is inside a packfile, a new FILE * will be opened
1528 into the file.
1531 int COM_FOpenFile (const char *filename, FILE **file)
1533 return COM_FindFile (filename, NULL, file);
1540 If it is a pak file handle, don't really close it
1646 Takes an explicit (not game tree related) path to a pak file.
1681 com_modified = true; // not the original file
1755 // add the contents of the parms.txt file to the end of the command line