Méthode | Description | |
---|---|---|
CreatePath ( string baseDirectory, string gameDirectory, string relativePath ) : string | ||
FileExists ( string relativePath ) : bool | ||
FileExists ( string relativePath, string basePath ) : bool | ||
GetExtensionList ( string extension ) : string[] | ||
GetFiles ( string relativePath, string extension ) : |
||
GetFiles ( string relativePath, string extension, bool sort ) : |
||
GetFiles ( string relativePath, string extension, bool sort, bool fullRelativePath, string gameDirectory ) : |
||
Init ( ) : void |
Called only at inital startup, not when the filesystem is resetting due to a game change.
|
|
OpenExplicitFileRead ( string osPath ) : Stream | ||
OpenExplicitFileRead ( string osPath, System.DateTime &lastModified ) : Stream | ||
OpenFileRead ( string relativePath, System.DateTime &lastModified ) : Stream | ||
OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
OpenFileRead ( string relativePath, bool allowCopyFiles = true, string gameDirectory = null ) : Stream | ||
OpenFileWrite ( string relativePath ) : Stream | ||
OpenFileWrite ( string relativePath, string basePath ) : Stream | ||
QueueBackgroundLoad ( |
||
ReadFile ( string relativePath ) : byte[] | ||
ReadFile ( string relativePath, System.DateTime &timeStamp ) : byte[] |
Reads a complete file.
|
|
RelativePathToOSPath ( string relativePath, string basePath ) : string | ||
idFileSystem ( ) : System |
Méthode | Description | |
---|---|---|
AddGameDirectory ( string path, string directory ) : void |
Sets gameFolder, adds the directory to the head of the search paths, then loads any pk4 files.
|
|
Cmd_Dir ( object sender, CommandEventArgs e ) : void | ||
Cmd_Path ( object sender, CommandEventArgs e ) : void | ||
FileAllowedFromDirectory ( string path ) : bool |
Some files can be obtained from directories without compromising si_pure.
|
|
GetFileList ( string relativePath, string extensions, bool fullRelativePath ) : string[] | ||
GetFileList ( string relativePath, string extensions, bool fullRelativePath, string gameDirectory ) : string[] |
Does not clear the list first so this can be used to progressively build a file list. When 'sort' is true only the new files added to the list are sorted.
|
|
LoadZipFile ( string zip ) : |
||
OpenOSFile ( string name, FileMode mode, FileAccess access ) : Stream | ||
OpenOSFile ( string name, FileMode mode, FileAccess access, string &caseSensitiveName, System.DateTime &lastModified ) : Stream |
|
|
ProcessBackgroundDownloadThread ( ) : void | ||
SetupGameDirectories ( string gameName ) : void |
Takes care of the correct search order.
|
|
StartBackgroundDownloadThread ( ) : void | ||
Startup ( ) : void |
public CreatePath ( string baseDirectory, string gameDirectory, string relativePath ) : string | ||
baseDirectory | string | |
gameDirectory | string | |
relativePath | string | |
Résultat | string |
public FileExists ( string relativePath ) : bool | ||
relativePath | string | |
Résultat | bool |
public FileExists ( string relativePath, string basePath ) : bool | ||
relativePath | string | |
basePath | string | |
Résultat | bool |
public GetExtensionList ( string extension ) : string[] | ||
extension | string | |
Résultat | string[] |
public GetFiles ( string relativePath, string extension ) : |
||
relativePath | string | |
extension | string | |
Résultat |
public GetFiles ( string relativePath, string extension, bool sort ) : |
||
relativePath | string | |
extension | string | |
sort | bool | |
Résultat |
public GetFiles ( string relativePath, string extension, bool sort, bool fullRelativePath, string gameDirectory ) : |
||
relativePath | string | |
extension | string | |
sort | bool | |
fullRelativePath | bool | |
gameDirectory | string | |
Résultat |
public OpenExplicitFileRead ( string osPath ) : Stream | ||
osPath | string | |
Résultat | Stream |
public OpenExplicitFileRead ( string osPath, System.DateTime &lastModified ) : Stream | ||
osPath | string | |
lastModified | System.DateTime | |
Résultat | Stream |
public OpenFileRead ( string relativePath, System.DateTime &lastModified ) : Stream | ||
relativePath | string | |
lastModified | System.DateTime | |
Résultat | Stream |
public OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
relativePath | string | |
allowCopyFiles | bool | |
foundInPack | ||
searchFlags | FileSearch | |
Résultat | Stream |
public OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
relativePath | string | |
allowCopyFiles | bool | |
foundInPack | ||
gameDirectory | string | |
searchFlags | FileSearch | |
Résultat | Stream |
public OpenFileRead ( string relativePath, bool allowCopyFiles, |
||
relativePath | string | |
allowCopyFiles | bool | |
foundInPack | ||
gameDirectory | string | |
searchFlags | FileSearch | |
checkOnly | bool | |
found | bool | |
lastModified | System.DateTime | |
Résultat | Stream |
public OpenFileRead ( string relativePath, bool allowCopyFiles = true, string gameDirectory = null ) : Stream | ||
relativePath | string | |
allowCopyFiles | bool | |
gameDirectory | string | |
Résultat | Stream |
public OpenFileWrite ( string relativePath ) : Stream | ||
relativePath | string | |
Résultat | Stream |
public OpenFileWrite ( string relativePath, string basePath ) : Stream | ||
relativePath | string | |
basePath | string | |
Résultat | Stream |
public QueueBackgroundLoad ( |
||
backgroundDownload | ||
Résultat | void |
public ReadFile ( string relativePath ) : byte[] | ||
relativePath | string | |
Résultat | byte[] |
public ReadFile ( string relativePath, System.DateTime &timeStamp ) : byte[] | ||
relativePath | string | |
timeStamp | System.DateTime | |
Résultat | byte[] |
public RelativePathToOSPath ( string relativePath, string basePath ) : string | ||
relativePath | string | |
basePath | string | |
Résultat | string |