Navigation
API > API/Runtime > API/Runtime/PakFile
Inheritance Hierarchy
- IPlatformFile
- FPakPlatformFile
References
| Module | PakFile |
| Header | /Engine/Source/Runtime/PakFile/Public/IPlatformFilePak.h |
| Include | #include "IPlatformFilePak.h" |
Syntax
class FPakPlatformFile : public IPlatformFile
Remarks
Platform file wrapper to be able to use pak files.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if any of the mounted or pending pak files are chunks (filenames starting pakchunkN) | ||
| void | BroadcastPakChunkSignatureCheckFailure
(
const FPakChunkSignatureCheckFailedData& InData |
Broadcast a signature check failure through any registered delegates in a thread safe way. | |
| void | BroadcastPakMasterSignatureTableCheckFailure
(
const FString& InFilename |
||
| void | BroadcastPakPrincipalSignatureTableCheckFailure
(
const FString& InFilename |
Broadcast a principal signature table failure through any registered delegates in a thread safe way. | |
| bool | CheckIfPakFilesExist
(
IPlatformFile* LowLevelFile, |
Checks if pak files exist in any of the known pak file locations. | |
| FString | ConvertToPakRelativePath
(
const TCHAR* Filename, |
Converts a filename to a path inside pak file. | |
| bool | FindFileInPakFiles
(
const TCHAR* Filename, |
Finds a file in all available pak files. | |
| bool | FindFileInPakFiles
(
TArray< FPakListEntry >& Paks, |
Overload needed for deprecation; remove this when removing the version with a FPakFile** OutPakFile | |
| bool | FindFileInPakFiles
(
TArray< FPakListEntry >& Paks, |
Finds a file in the specified pak files. | |
| bool | FindFileInPakFiles
(
const TCHAR* Filename, |
Overload needed for deprecation; remove this when removing the version with a FPakFile** OutPakFile | |
| void | FindFilesInternal
(
TArray< FString >& FoundFiles, |
||
| void | ForeachPackageInIostoreWhile
(
TFunctionRef< bool(FName)> Predicate |
Iterates Iostore Container while Predicate returns true | |
| FFilenameSecurityDelegate & | Access static delegate for loose file security. | ||
| void | GetFilenamesFromIostoreByBlockIndex
(
const FString& InContainerName, |
Returns the RelativePathFromMount Filename for every Filename found in the Iostore Container that relates to the provided block indexes | |
| void | GetFilenamesFromIostoreContainer
(
const FString& InContainerName, |
Returns the RelativePathFromMount Filename for every file found in the given Iostore Container | |
| void | GetMountedPakFilenames
(
TArray< FString >& PakFilenames |
Get a list of all pak files which have been successfully mounted | |
| const TCHAR * | Get the wild card pattern used to identify paks to load on startup | ||
| EChunkLocation::Type | GetPakChunkLocation
(
int32 InPakchunkIndex |
Determine location information for a given pakchunk index. | |
| FPakCustomEncryptionDelegate & | Access static delegate for custom encryption. | ||
| void | GetPakEncryptionKey
(
FAES::FAESKey& OutKey, |
Helper function for accessing pak encryption keyPrecaching | |
| void | GetPakFolders
(
const TCHAR* CmdLine, |
Gets all pak file locations. | |
| FPakSetIndexSettings & | Access static delegate for setting PakIndex settings. | ||
| TSharedPtr< const struct FPakSignatureFile, ESPMode::ThreadSafe > | GetPakSignatureFile
(
const TCHAR* InFilename |
Load a pak signature file. | |
| FPakSigningFailureHandlerData & | Access static delegate for handling a Pak signature check failure. | ||
| void | GetPrunedFilenamesInChunk
(
const FString& InPakFilename, |
Get a list of RelativePathFromMount for every file in the given Pak that lives in any of the given chunks. | |
| void | GetPrunedFilenamesInPakFile
(
const FString& InPakFilename, |
Gets a list of FullPaths (includes Mount directory) for every File in the given Pak's Pruned DirectoryIndex | |
| const TCHAR * | GetTypeName () |
Get the unique name for the pak platform file layer | |
| void | HandleMountCommand
(
const TCHAR* Cmd, |
||
| void | HandlePakCorruptCommand
(
const TCHAR* Cmd, |
||
| void | HandlePakListCommand
(
const TCHAR* Cmd, |
BEGIN Console commands. | |
| void | HandleReloadPakReadersCommand
(
const TCHAR* Cmd, |
||
| void | HandleUnmountCommand
(
const TCHAR* Cmd, |
||
| bool | IterateDirectoryInternal
(
const TCHAR* Directory, |
||
| bool | IterateDirectoryInternal
(
const TCHAR* Directory, |
||
| bool | IterateDirectoryStatInternal
(
const TCHAR* Directory, |
||
| bool | Mount
(
const TCHAR* InPakFilename, |
Mounts a pak file at the specified path. | |
| int32 | MountAllPakFiles
(
const TArray< FString >& PakFolders |
||
| int32 | MountAllPakFiles
(
const TArray< FString >& PakFolders, |
||
| void | |||
| void | |||
| bool | Re-creates all the pak readers | ||
| void | RemoveCachedPakSignaturesFile
(
const TCHAR* InFilename |
Remove the intenrally cached pointer to the signature file for the specified pak | |
| void | SetMountStartupPaksWildCard
(
const FString& WildCard |
Overrides the wildcard used for searching paks. Call before initialization | |
| bool | Unmount
(
const TCHAR* InPakFilename |
Overridden from IPlatformFile
| Type | Name | Description | |
|---|---|---|---|
| FString | ConvertToAbsolutePathForExternalAppForRead
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for reading). | |
| FString | ConvertToAbsolutePathForExternalAppForWrite
(
const TCHAR* Filename |
Converts passed in filename to use an absolute path (for writing) | |
| bool | CopyFile
(
const TCHAR* To, |
Copy a file. This will fail if the destination file already exists. | |
| bool | CreateDirectory
(
const TCHAR* Directory |
Create a directory and return true if the directory was created or already existed. | |
| bool | CreateDirectoryTree
(
const TCHAR* Directory |
Create a directory, including any parent directories and return true if the directory was created or already existed. | |
| bool | DeleteDirectory
(
const TCHAR* Directory |
Delete a directory and return true if the directory was deleted or otherwise does not exist. | |
| bool | DeleteDirectoryRecursively
(
const TCHAR* Directory |
Delete all files and subdirectories in a directory, then delete the directory itself | |
| bool | DeleteFile
(
const TCHAR* Filename |
Delete a file and return true if the file exists. Will not delete read only files. | |
| bool |
DirectoryExists
(
const TCHAR* Directory |
Return true if the directory exists. | |
| bool | FileExists
(
const TCHAR* Filename |
Return true if the file exists. | |
| int64 | FileSize
(
const TCHAR* Filename |
Return the size of the file, or -1 if it doesn't exist. | |
| void | Finds all the files within the given directory, with optional file extension filter | ||
| void | FindFilesRecursively
(
TArray< FString >& FoundFiles, |
Finds all the files within the directory tree, with optional file extension filter | |
| FDateTime | GetAccessTimeStamp
(
const TCHAR* Filename |
Return the last access time of a file. | |
| FString | GetFilenameOnDisk
(
const TCHAR* Filename |
For case insensitive filesystems, returns the full path of the file with the same case as in the filesystem | |
| IPlatformFile * | Gets the platform file wrapped by this file. | ||
| const TCHAR * | GetName () |
Gets this platform file type name. | |
| FFileStatData | GetStatData
(
const TCHAR* FilenameOrDirectory |
Return the stat data for the given file or directory. | |
| FDateTime | GetTimeStamp
(
const TCHAR* Filename |
Return the modification time of a file. | |
| void | GetTimeStampPair
(
const TCHAR* FilenameA, |
||
| bool | Initialize
(
IPlatformFile* Inner, |
Initializes platform file. | |
| void | Performs initialization of the platform file after the new async IO has been enabled | ||
| bool | IsReadOnly
(
const TCHAR* Filename |
Return true if the file is read only. | |
| ESymlinkResult | IsSymlink
(
const TCHAR* Filename |
Return true if the file is a symbolic link | |
| bool | IterateDirectory
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectoryRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| bool | IterateDirectoryStat
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a single directory. | |
| bool | IterateDirectoryStatRecursively
(
const TCHAR* Directory, |
Call the Visit function of the visitor once for each file or directory in a directory tree. | |
| void | MakeUniquePakFilesForTheseFiles
(
const TArray< TArray< FString >>& InFiles |
Make unique in memory pak files from a list of named files | |
| bool | MoveFile
(
const TCHAR* To, |
Attempt to move a file. Return true if successful. Will not overwrite existing files. | |
| IAsyncReadFileHandle * | OpenAsyncRead
(
const TCHAR* Filename |
Open a file for async reading. This call does not hit the disk or block. | |
| IMappedFileHandle * | OpenMapped
(
const TCHAR* Filename |
Open a file for async reading. This call does hit the disk; it is synchronous open. | |
| IFileHandle * | OpenRead
(
const TCHAR* Filename, |
Attempt to open a file for reading. | |
| IFileHandle * | OpenWrite
(
const TCHAR* Filename, |
Attempt to open a file for writing. | |
| void | SetAsyncMinimumPriority
(
EAsyncIOPriorityAndFlags MinPriority |
Controls if the pak precacher should process precache requests. | |
| void | SetLowerLevel
(
IPlatformFile* NewLowerLevel |
Sets the platform file wrapped by this file. | |
| bool | SetReadOnly
(
const TCHAR* Filename, |
Attempt to change the read only status of a file. Return true if successful. | |
| void | SetTimeStamp
(
const TCHAR* Filename, |
Sets the modification time of a file | |
| bool | ShouldBeUsed
(
IPlatformFile* Inner, |
Checks if this platform file should be used even though it was not asked to be. | |
| void | Tick () |
Platform file can override this to get a regular tick from the engine |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPakSigningFailureHandlerData | |||
| FPreventDuplicatesStatVisitor | |||
| FPreventDuplicatesVisitor | |||
| FPreventDuplicatesVisitorBase | Helper class to filter out files which have already been visited in one of the pak files. |
Constants
| Name | Description |
|---|---|
| PakSignatureFileCache | Internal cache of pak signature files. |
| PakSignatureFileCacheLock |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FindFileInPakFiles
(
TArray< FPakListEntry >& Paks, |
Use version with OutPakFile is a TRefCountPtr |
|
| bool | FindFileInPakFiles
(
const TCHAR* Filename, |
Use version with OutPakFile is a TRefCountPtr |