mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
gl_shader_disk_cache: Add transferable cache invalidation
This commit is contained in:
parent
a1faed9950
commit
4039086226
2 changed files with 8 additions and 0 deletions
|
@ -156,6 +156,11 @@ std::vector<ShaderDiskCachePrecompiledEntry> ShaderDiskCacheOpenGL::LoadPrecompi
|
||||||
return precompiled;
|
return precompiled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ShaderDiskCacheOpenGL::InvalidateTransferable() const {
|
||||||
|
FileUtil::Delete(GetTransferablePath());
|
||||||
|
InvalidatePrecompiled();
|
||||||
|
}
|
||||||
|
|
||||||
void ShaderDiskCacheOpenGL::InvalidatePrecompiled() const {
|
void ShaderDiskCacheOpenGL::InvalidatePrecompiled() const {
|
||||||
FileUtil::Delete(GetPrecompiledPath());
|
FileUtil::Delete(GetPrecompiledPath());
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,6 +147,9 @@ public:
|
||||||
/// Loads current game's precompiled cache. Invalidates if emulator's version has changed.
|
/// Loads current game's precompiled cache. Invalidates if emulator's version has changed.
|
||||||
std::vector<ShaderDiskCachePrecompiledEntry> LoadPrecompiled();
|
std::vector<ShaderDiskCachePrecompiledEntry> LoadPrecompiled();
|
||||||
|
|
||||||
|
/// Removes the transferable (and precompiled) cache file.
|
||||||
|
void InvalidateTransferable() const;
|
||||||
|
|
||||||
/// Removes the precompiled cache file.
|
/// Removes the precompiled cache file.
|
||||||
void InvalidatePrecompiled() const;
|
void InvalidatePrecompiled() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue