#include "qcommon.h"
Go to the source code of this file.
Classes | |
struct | packfile_t |
struct | pack_s |
struct | filelink_s |
struct | searchpath_s |
Macros | |
#define | PAK0_CHECKSUM 0x40e614e0 |
#define | MAX_READ 0x10000 |
Typedefs | |
typedef struct pack_s | pack_t |
typedef struct filelink_s | filelink_t |
typedef struct searchpath_s | searchpath_t |
Functions | |
int | FS_filelength (FILE *f) |
void | FS_CreatePath (char *path) |
void | FS_FCloseFile (FILE *f) |
int | Developer_searchpath (int who) |
int | FS_FOpenFile (char *filename, FILE **file) |
void | CDAudio_Stop (void) |
void | FS_Read (void *buffer, int len, FILE *f) |
int | FS_LoadFile (char *path, void **buffer) |
void | FS_FreeFile (void *buffer) |
pack_t * | FS_LoadPackFile (char *packfile) |
void | FS_AddGameDirectory (char *dir) |
void | FS_AddHomeAsGameDirectory (char *dir) |
char * | FS_Gamedir (void) |
void | FS_ExecAutoexec (void) |
void | FS_SetGamedir (char *dir) |
void | FS_Link_f (void) |
char ** | FS_ListFiles (char *findname, int *numfiles, unsigned musthave, unsigned canthave) |
void | FS_Dir_f (void) |
void | FS_Path_f (void) |
char * | FS_NextPath (char *prevpath) |
void | FS_InitFilesystem (void) |
Variables | |
char | fs_gamedir [MAX_OSPATH] |
cvar_t * | fs_basedir |
cvar_t * | fs_cddir |
cvar_t * | fs_gamedirvar |
filelink_t * | fs_links |
searchpath_t * | fs_searchpaths |
searchpath_t * | fs_base_searchpaths |
int | file_from_pak = 0 |
typedef struct filelink_s filelink_t |
typedef struct searchpath_s searchpath_t |
Referenced by CDAudio_Play2(), CDAudio_RandomPlay(), FS_Read(), SCR_BeginLoadingPlaque(), SCR_PlayCinematic(), and UpdateCDVolumeFunc().
Definition at line 159 of file files.c.
Referenced by CL_AddPacketEntities(), DMFlagCallback(), DMOptions_MenuInit(), M_Menu_Credits_f(), RulesChangeFunc(), StartServer_MenuInit(), and StartServerActionFunc().
void FS_AddGameDirectory | ( | char * | dir | ) |
Definition at line 513 of file files.c.
Referenced by FS_AddHomeAsGameDirectory(), FS_InitFilesystem(), and FS_SetGamedir().
void FS_AddHomeAsGameDirectory | ( | char * | dir | ) |
void FS_CreatePath | ( | char * | path | ) |
Definition at line 125 of file files.c.
Referenced by CL_ParseDownload(), CL_Record_f(), Con_Dump_f(), FS_AddHomeAsGameDirectory(), SV_CopySaveGame(), SV_GameMap_f(), and SV_ServerRecord_f().
Definition at line 600 of file files.c.
Referenced by CL_Init(), Cvar_GetLatchedVars(), and Cvar_Set2().
void FS_FCloseFile | ( | FILE * | f | ) |
Definition at line 149 of file files.c.
Referenced by S_RegisterSexedSound().
int FS_filelength | ( | FILE * | f | ) |
int FS_FOpenFile | ( | char * | filename, |
FILE ** | file | ||
) |
Definition at line 206 of file files.c.
Referenced by FS_LoadFile(), S_RegisterSexedSound(), SCR_PlayCinematic(), and SV_BeginDemoserver().
Definition at line 433 of file files.c.
Referenced by CL_RequestNextDownload(), CM_LoadMap(), Cmd_Exec_f(), M_Credits_Key(), S_LoadSound(), SCR_LoadPCX(), StartServer_MenuInit(), SV_BeginDownload_f(), SV_DropClient(), SV_NextDownload_f(), and VID_LoadRefresh().
char* FS_Gamedir | ( | void | ) |
Definition at line 590 of file files.c.
Referenced by CL_DownloadFileName(), CL_Record_f(), CL_WriteConfiguration(), Com_Printf(), Con_Dump_f(), Create_Savestrings(), StartServer_MenuInit(), SV_CheckForSavegame(), SV_CopySaveGame(), SV_GameMap_f(), SV_Loadgame_f(), SV_ReadLevelFile(), SV_ReadServerFile(), SV_ServerRecord_f(), SV_WipeSavegame(), SV_WriteLevelFile(), SV_WriteServerFile(), and VID_LoadRefresh().
char** FS_ListFiles | ( | char * | findname, |
int * | numfiles, | ||
unsigned | musthave, | ||
unsigned | canthave | ||
) |
Definition at line 738 of file files.c.
Referenced by FS_Dir_f(), and PlayerConfig_ScanDirectories().
Definition at line 394 of file files.c.
Referenced by CL_CheckOrDownloadFile(), CL_Download_f(), CL_RequestNextDownload(), CM_LoadMap(), Cmd_Exec_f(), M_Menu_Credits_f(), S_LoadSound(), SCR_LoadPCX(), StartServer_MenuInit(), SV_BeginDownload_f(), SV_Map_f(), and VID_LoadRefresh().
pack_t* FS_LoadPackFile | ( | char * | packfile | ) |
char* FS_NextPath | ( | char * | prevpath | ) |
Definition at line 865 of file files.c.
Referenced by FS_Dir_f(), PlayerConfig_ScanDirectories(), and Sys_GetGameAPI().
Definition at line 346 of file files.c.
Referenced by CM_ReadPortalState(), Create_Savestrings(), FS_LoadFile(), Huff1TableInit(), SCR_PlayCinematic(), SCR_ReadNextFrame(), SV_ReadLevelFile(), and SV_ReadServerFile().
void FS_SetGamedir | ( | char * | dir | ) |
Definition at line 638 of file files.c.
Referenced by Cvar_GetLatchedVars(), Cvar_Set2(), and FS_InitFilesystem().
int file_from_pak = 0 |
Definition at line 204 of file files.c.
Referenced by FS_FOpenFile(), and SV_BeginDownload_f().
searchpath_t* fs_base_searchpaths |
Definition at line 84 of file files.c.
Referenced by FS_ExecAutoexec(), FS_InitFilesystem(), FS_Path_f(), and FS_SetGamedir().
cvar_t* fs_basedir |
Definition at line 62 of file files.c.
Referenced by FS_InitFilesystem(), and FS_SetGamedir().
cvar_t* fs_cddir |
Definition at line 63 of file files.c.
Referenced by FS_InitFilesystem(), and FS_SetGamedir().
char fs_gamedir[MAX_OSPATH] |
Definition at line 61 of file files.c.
Referenced by FS_AddHomeAsGameDirectory(), and FS_Gamedir().
cvar_t* fs_gamedirvar |
Definition at line 64 of file files.c.
Referenced by CL_ParseServerData(), and FS_InitFilesystem().
filelink_t* fs_links |
Definition at line 74 of file files.c.
Referenced by FS_FOpenFile(), FS_Link_f(), and FS_Path_f().
searchpath_t* fs_searchpaths |
Definition at line 83 of file files.c.
Referenced by Developer_searchpath(), FS_AddGameDirectory(), FS_ExecAutoexec(), FS_FOpenFile(), FS_InitFilesystem(), FS_NextPath(), FS_Path_f(), and FS_SetGamedir().