doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions | Variables
FileSystem.cpp File Reference
#include "../idlib/precompiled.h"
#include "Unzip.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  pureExclusion_s
 
class  idInitExclusions
 
struct  fileInPack_s
 
struct  addonInfo_t
 
struct  pack_t
 
struct  directory_t
 
struct  searchpath_s
 
class  idDEntry
 
class  idFileSystemLocal
 

Macros

#define DOOM3_PURE_SPECIAL_CASES
 
#define MAX_ZIPPED_FILE_NAME   2048
 
#define FILE_HASH_SIZE   1024
 
#define FSFLAG_SEARCH_DIRS   ( 1 << 0 )
 
#define FSFLAG_SEARCH_PAKS   ( 1 << 1 )
 
#define FSFLAG_PURE_NOREF   ( 1 << 2 )
 
#define FSFLAG_BINARY_ONLY   ( 1 << 3 )
 
#define FSFLAG_SEARCH_ADDONS   ( 1 << 4 )
 
#define MAX_CACHED_DIRS   6
 
#define MAX_GAME_OS   6
 
#define BINARY_CONFIG   "binary.conf"
 
#define ADDON_CONFIG   "addon.conf"
 

Typedefs

typedef bool(* pureExclusionFunc_t )(const struct pureExclusion_s &excl, int l, const idStr &name)
 
typedef struct pureExclusion_s pureExclusion_t
 
typedef struct fileInPack_s fileInPack_t
 
typedef struct searchpath_s searchpath_t
 

Enumerations

enum  binaryStatus_t { BINARY_UNKNOWN = 0, BINARY_YES, BINARY_NO }
 
enum  pureStatus_t { PURE_UNKNOWN = 0, PURE_NEUTRAL, PURE_ALWAYS, PURE_NEVER }
 

Functions

bool excludeExtension (const pureExclusion_t &excl, int l, const idStr &name)
 
bool excludePathPrefixAndExtension (const pureExclusion_t &excl, int l, const idStr &name)
 
bool excludeFullName (const pureExclusion_t &excl, int l, const idStr &name)
 
dword BackgroundDownloadThread (void *parms)
 

Variables

idFileSystemLocal fileSystemLocal
 
idFileSystemfileSystem = &fileSystemLocal
 

Macro Definition Documentation

#define ADDON_CONFIG   "addon.conf"

Definition at line 324 of file FileSystem.cpp.

#define BINARY_CONFIG   "binary.conf"

Definition at line 323 of file FileSystem.cpp.

#define DOOM3_PURE_SPECIAL_CASES

Definition at line 174 of file FileSystem.cpp.

#define FILE_HASH_SIZE   1024

Definition at line 256 of file FileSystem.cpp.

#define FSFLAG_BINARY_ONLY   ( 1 << 3 )

Definition at line 314 of file FileSystem.cpp.

#define FSFLAG_PURE_NOREF   ( 1 << 2 )

Definition at line 313 of file FileSystem.cpp.

#define FSFLAG_SEARCH_ADDONS   ( 1 << 4 )

Definition at line 315 of file FileSystem.cpp.

#define FSFLAG_SEARCH_DIRS   ( 1 << 0 )

Definition at line 311 of file FileSystem.cpp.

#define FSFLAG_SEARCH_PAKS   ( 1 << 1 )

Definition at line 312 of file FileSystem.cpp.

#define MAX_CACHED_DIRS   6

Definition at line 319 of file FileSystem.cpp.

#define MAX_GAME_OS   6

Definition at line 322 of file FileSystem.cpp.

#define MAX_ZIPPED_FILE_NAME   2048

Definition at line 255 of file FileSystem.cpp.

Typedef Documentation

typedef struct fileInPack_s fileInPack_t
typedef bool(* pureExclusionFunc_t)(const struct pureExclusion_s &excl, int l, const idStr &name)

Definition at line 176 of file FileSystem.cpp.

typedef struct searchpath_s searchpath_t

Enumeration Type Documentation

Enumerator
BINARY_UNKNOWN 
BINARY_YES 
BINARY_NO 

Definition at line 264 of file FileSystem.cpp.

Enumerator
PURE_UNKNOWN 
PURE_NEUTRAL 
PURE_ALWAYS 
PURE_NEVER 

Definition at line 270 of file FileSystem.cpp.

Function Documentation

dword BackgroundDownloadThread ( void parms)

Definition at line 3626 of file FileSystem.cpp.

bool excludeExtension ( const pureExclusion_t excl,
int  l,
const idStr name 
)

Definition at line 186 of file FileSystem.cpp.

bool excludeFullName ( const pureExclusion_t excl,
int  l,
const idStr name 
)

Definition at line 200 of file FileSystem.cpp.

bool excludePathPrefixAndExtension ( const pureExclusion_t excl,
int  l,
const idStr name 
)

Definition at line 193 of file FileSystem.cpp.

Variable Documentation

idFileSystem* fileSystem = &fileSystemLocal

Definition at line 500 of file FileSystem.cpp.

idFileSystemLocal fileSystemLocal

Definition at line 499 of file FileSystem.cpp.