18#ifndef INCLUDED_CACHELOADER
19#define INCLUDED_CACHELOADER
Helper class for systems that have an expensive cacheable conversion process when loading files.
Definition: CacheLoader.h:41
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
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
std::wstring m_FileExtension
Definition: CacheLoader.h:71
VfsPath ArchiveCachePath(const VfsPath &sourcePath) const
Return the path of the archive cache for the given source file.
Definition: CacheLoader.cpp:113
PIVFS m_VFS
Definition: CacheLoader.h:70
CCacheLoader(PIVFS vfs, const std::wstring &fileExtension)
Definition: CacheLoader.cpp:28
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
MD5 hashing algorithm.
Definition: MD5.h:28
Definition: vfs_util.cpp:39
i64 Status
Error handling system.
Definition: status.h:173
uint32_t u32
Definition: types.h:39
std::shared_ptr< IVFS > PIVFS
Definition: vfs.h:220