18#ifndef INCLUDED_CACHELOADER
19#define INCLUDED_CACHELOADER
56 std::uint32_t version,
VfsPath& loadPath);
Helper class for systems that have an expensive cacheable conversion process when loading files.
Definition: CacheLoader.h:45
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:77
Status TryLoadingCached(const VfsPath &sourcePath, const MD5 &initialHash, std::uint32_t version, VfsPath &loadPath)
Attempts to find a valid cached which can be loaded.
Definition: CacheLoader.cpp:37
std::wstring m_FileExtension
Definition: CacheLoader.h:76
VfsPath ArchiveCachePath(const VfsPath &sourcePath) const
Return the path of the archive cache for the given source file.
Definition: CacheLoader.cpp:118
PIVFS m_VFS
Definition: CacheLoader.h:75
CCacheLoader(PIVFS vfs, const std::wstring &fileExtension)
Definition: CacheLoader.cpp:32
VfsPath LooseCachePath(const VfsPath &sourcePath, const MD5 &initialHash, std::uint32_t version)
Return the path of the loose cache for the given source file.
Definition: CacheLoader.cpp:123
MD5 hashing algorithm.
Definition: MD5.h:30
Definition: vfs_util.cpp:42
std::int64_t Status
Error handling system.
Definition: status.h:174
std::shared_ptr< IVFS > PIVFS
Definition: vfs.h:240