18 #ifndef INCLUDED_CACHELOADER 19 #define INCLUDED_CACHELOADER 74 #endif // INCLUDED_CACHELOADER std::wstring m_FileExtension
Definition: CacheLoader.h:71
VfsPath LooseCachePath(const VfsPath &sourcePath, const MD5 &initialHash, u32 version)
Return the path of the loose cache for the given source file.
Definition: CacheLoader.cpp:118
std::shared_ptr< IVFS > PIVFS
Definition: vfs.h:220
PIVFS m_VFS
Definition: CacheLoader.h:70
uint32_t u32
Definition: types.h:39
MD5 hashing algorithm.
Definition: MD5.h:27
i64 Status
Error handling system.
Definition: status.h:169
CCacheLoader(PIVFS vfs, const std::wstring &fileExtension)
Definition: CacheLoader.cpp:28
VfsPath ArchiveCachePath(const VfsPath &sourcePath) const
Return the path of the archive cache for the given source file.
Definition: CacheLoader.cpp:113
bool CanUseArchiveCache(const VfsPath &sourcePath, const VfsPath &archiveCachePath)
Determines whether we can safely use the archived cache file, or need to re-convert the source file...
Definition: CacheLoader.cpp:72
Definition: vfs_util.cpp:39
Status TryLoadingCached(const VfsPath &sourcePath, const MD5 &initialHash, u32 version, VfsPath &loadPath)
Attempts to find a valid cached which can be loaded.
Definition: CacheLoader.cpp:33
Helper class for systems that have an expensive cacheable conversion process when loading files...
Definition: CacheLoader.h:40